Merge pull request #7675 from mathieutu/dev

feat: improve tab switching with trackpad
This commit is contained in:
mr. m
2025-04-17 12:54:33 +02:00
committed by GitHub

View File

@@ -466,6 +466,10 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
this._swipeState.direction = delta > 0 ? 'left' : 'right';
}
if (Math.abs(translateX) >= 40) {
return this._handleSwipeEnd(event);
}
// Apply a translateX to the tab strip to give the user feedback on the swipe
const currentWorkspace = this.activeWorkspace;
this._organizeWorkspaceStripLocations({ uuid: currentWorkspace }, true, translateX);