mirror of
https://github.com/zen-browser/desktop.git
synced 2026-01-07 05:43:21 +00:00
Merge pull request #7675 from mathieutu/dev
feat: improve tab switching with trackpad
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user