mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-16 23:06:30 +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(
|
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,
|
||||||
|
Reference in New Issue
Block a user