diff --git a/src/zen/workspaces/ZenWorkspaces.mjs b/src/zen/workspaces/ZenWorkspaces.mjs index 86ae8795d..762059c6f 100644 --- a/src/zen/workspaces/ZenWorkspaces.mjs +++ b/src/zen/workspaces/ZenWorkspaces.mjs @@ -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(); diff --git a/src/zen/workspaces/zen-workspaces.css b/src/zen/workspaces/zen-workspaces.css index c3781a1a8..01e3209bb 100644 --- a/src/zen/workspaces/zen-workspaces.css +++ b/src/zen/workspaces/zen-workspaces.css @@ -517,7 +517,7 @@ zen-workspace { overflow-y: auto; } - &[swipe-gesture]::part(scrollbox) { + :root[swipe-gesture] &::part(scrollbox) { scrollbar-width: none; }