feat: improve tab switching with trackpad

This commit is contained in:
Mathieu TUDISCO
2025-04-17 12:41:35 +02:00
parent 61b384ee56
commit dfe8abd496

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);