mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-16 14:56:14 +00:00
fix: Fixed canceling gesture not showing scrollbar, b=(no-bug), c=workspaces
This commit is contained in:
@@ -609,6 +609,7 @@ var gZenWorkspaces = new (class extends ZenMultiWindowFeature {
|
||||
element.addEventListener(
|
||||
'MozSwipeGestureEnd',
|
||||
(event) => {
|
||||
this.activeScrollbox.removeAttribute('swipe-gesture');
|
||||
gZenUIManager.tabsWrapper.style.removeProperty('scrollbar-width');
|
||||
this.updateTabsContainers();
|
||||
},
|
||||
@@ -682,8 +683,6 @@ var gZenWorkspaces = new (class extends ZenMultiWindowFeature {
|
||||
const direction = this.naturalScroll ? -1 : 1;
|
||||
await this.changeWorkspaceShortcut(rawDirection * direction, true);
|
||||
|
||||
this.activeScrollbox.removeAttribute('swipe-gesture');
|
||||
|
||||
// Reset swipe state
|
||||
this._swipeState = {
|
||||
isGestureActive: false,
|
||||
|
Reference in New Issue
Block a user