feat: Added support for swiping when scrolling on workspaces, b=(no-bug), c=workspaces

This commit is contained in:
mr. m
2025-05-18 12:22:11 +02:00
parent d9a6bb5b2d
commit 820652bd5e
4 changed files with 12 additions and 21 deletions

View File

@@ -6,7 +6,7 @@
<hbox class="zen-current-workspace-indicator-icon"></hbox>
<hbox class="zen-current-workspace-indicator-name"></hbox>
</vbox>
<arrowscrollbox orient="vertical" tabindex="-1">
<arrowscrollbox orient="vertical" tabindex="-1" class="workspace-arrowscrollbox">
<vbox class="zen-workspace-tabs-section zen-workspace-pinned-tabs-section">
<html:div class="vertical-pinned-tabs-container-separator"></html:div>
</vbox>
@@ -77,6 +77,13 @@
get: () => 36,
});
if (
Services.prefs.getBoolPref('zen.workspaces.swipe-actions', false) &&
gZenWorkspaces.workspaceEnabled
) {
gZenWorkspaces.attachGestureHandlers(this);
}
// Add them manually since attribute inheritance doesn't work
// for multiple layers of shadow DOM.
this.tabsContainer.setAttribute('zen-workspace-id', this.id);