From a869e7a3bd2be77a7c449ce19b2dbb7bcf00c815 Mon Sep 17 00:00:00 2001 From: Bridget Morningstar <168581144+neurokitti@users.noreply.github.com> Date: Thu, 28 Nov 2024 22:29:16 -0600 Subject: [PATCH] removed my spaces lol mb asdf --- src/browser/base/zen-components/ZenWorkspaces.mjs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/browser/base/zen-components/ZenWorkspaces.mjs b/src/browser/base/zen-components/ZenWorkspaces.mjs index 164c6a62b..dd87e7e64 100644 --- a/src/browser/base/zen-components/ZenWorkspaces.mjs +++ b/src/browser/base/zen-components/ZenWorkspaces.mjs @@ -112,18 +112,18 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature { _setupSidebarHandlers() { const toolbox = document.getElementById('navigator-toolbox'); - + toolbox.addEventListener('mouseenter', () => { this._hoveringSidebar = true; }); - + toolbox.addEventListener('mouseleave', () => { this._hoveringSidebar = false; }); - + const scrollCooldown = 200; // Milliseconds to wait before allowing another scroll const scrollThreshold = 2; // Minimum scroll delta to trigger workspace change - + toolbox.addEventListener('wheel', async (event) => { if (!this.workspaceEnabled) return; @@ -249,11 +249,11 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature { if (!this.workspaceEnabled || !this._swipeState?.isGestureActive) return; event.preventDefault(); event.stopPropagation(); - + if (this._swipeState.direction) { const workspaces = (await this._workspaces()).workspaces; const currentIndex = workspaces.findIndex(w => w.uuid === this.activeWorkspace); - + if (currentIndex !== -1) { const isRTL = document.documentElement.matches(':-moz-locale-dir(rtl)'); const moveForward = (this._swipeState.direction === 'right') !== isRTL;