feat: Dont show scrollbar to all workspaces when swiping, b=(no-bug), c=workspaces

This commit is contained in:
mr. m
2025-05-19 13:12:52 +02:00
parent 32b7af5834
commit 66003832b2
2 changed files with 3 additions and 3 deletions

View File

@@ -609,7 +609,7 @@ var gZenWorkspaces = new (class extends ZenMultiWindowFeature {
element.addEventListener(
'MozSwipeGestureEnd',
(event) => {
this.activeScrollbox.removeAttribute('swipe-gesture');
document.documentElement.removeAttribute('swipe-gesture');
gZenUIManager.tabsWrapper.style.removeProperty('scrollbar-width');
this.updateTabsContainers();
},
@@ -634,7 +634,7 @@ var gZenWorkspaces = new (class extends ZenMultiWindowFeature {
_handleSwipeStart(event) {
if (!this.workspaceEnabled) return;
this.activeScrollbox.setAttribute('swipe-gesture', 'true');
document.documentElement.setAttribute('swipe-gesture', 'true');
event.preventDefault();
event.stopPropagation();

View File

@@ -517,7 +517,7 @@ zen-workspace {
overflow-y: auto;
}
&[swipe-gesture]::part(scrollbox) {
:root[swipe-gesture] &::part(scrollbox) {
scrollbar-width: none;
}