From 66003832b293df34e95692b4e1b850dddd0a036c Mon Sep 17 00:00:00 2001 From: "mr. m" Date: Mon, 19 May 2025 13:12:52 +0200 Subject: [PATCH] feat: Dont show scrollbar to all workspaces when swiping, b=(no-bug), c=workspaces --- src/zen/workspaces/ZenWorkspaces.mjs | 4 ++-- src/zen/workspaces/zen-workspaces.css | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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; }