mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-16 14:56:14 +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();
|
||||
|
@@ -517,7 +517,7 @@ zen-workspace {
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
&[swipe-gesture]::part(scrollbox) {
|
||||
:root[swipe-gesture] &::part(scrollbox) {
|
||||
scrollbar-width: none;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user