mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-16 06:46:12 +00:00
feat: Dont show scrollbar to all workspaces when swiping, b=(no-bug), c=workspaces
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user