fix: Fixed canceling gesture not showing scrollbar, b=(no-bug), c=workspaces

This commit is contained in:
mr. m
2025-05-19 09:22:38 +02:00
parent e5294908ec
commit 1561525d47

View File

@@ -609,6 +609,7 @@ var gZenWorkspaces = new (class extends ZenMultiWindowFeature {
element.addEventListener( element.addEventListener(
'MozSwipeGestureEnd', 'MozSwipeGestureEnd',
(event) => { (event) => {
this.activeScrollbox.removeAttribute('swipe-gesture');
gZenUIManager.tabsWrapper.style.removeProperty('scrollbar-width'); gZenUIManager.tabsWrapper.style.removeProperty('scrollbar-width');
this.updateTabsContainers(); this.updateTabsContainers();
}, },
@@ -682,8 +683,6 @@ var gZenWorkspaces = new (class extends ZenMultiWindowFeature {
const direction = this.naturalScroll ? -1 : 1; const direction = this.naturalScroll ? -1 : 1;
await this.changeWorkspaceShortcut(rawDirection * direction, true); await this.changeWorkspaceShortcut(rawDirection * direction, true);
this.activeScrollbox.removeAttribute('swipe-gesture');
// Reset swipe state // Reset swipe state
this._swipeState = { this._swipeState = {
isGestureActive: false, isGestureActive: false,