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(
|
element.addEventListener(
|
||||||
'MozSwipeGestureEnd',
|
'MozSwipeGestureEnd',
|
||||||
(event) => {
|
(event) => {
|
||||||
this.activeScrollbox.removeAttribute('swipe-gesture');
|
document.documentElement.removeAttribute('swipe-gesture');
|
||||||
gZenUIManager.tabsWrapper.style.removeProperty('scrollbar-width');
|
gZenUIManager.tabsWrapper.style.removeProperty('scrollbar-width');
|
||||||
this.updateTabsContainers();
|
this.updateTabsContainers();
|
||||||
},
|
},
|
||||||
@@ -634,7 +634,7 @@ var gZenWorkspaces = new (class extends ZenMultiWindowFeature {
|
|||||||
_handleSwipeStart(event) {
|
_handleSwipeStart(event) {
|
||||||
if (!this.workspaceEnabled) return;
|
if (!this.workspaceEnabled) return;
|
||||||
|
|
||||||
this.activeScrollbox.setAttribute('swipe-gesture', 'true');
|
document.documentElement.setAttribute('swipe-gesture', 'true');
|
||||||
|
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
|
@@ -517,7 +517,7 @@ zen-workspace {
|
|||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
&[swipe-gesture]::part(scrollbox) {
|
:root[swipe-gesture] &::part(scrollbox) {
|
||||||
scrollbar-width: none;
|
scrollbar-width: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user