mirror of
https://github.com/zen-browser/desktop.git
synced 2026-04-20 22:35:39 +00:00
fix: Fixed swiping when hovering the urlbar, b=no-bug, c=split-view, workspaces
This commit is contained in:
@@ -693,7 +693,12 @@ var gZenWorkspaces = new (class extends nsZenMultiWindowFeature {
|
||||
|
||||
_handleSwipeMayStart(event) {
|
||||
if (this.privateWindowOrDisabled || this._inChangingWorkspace) return;
|
||||
if (event.target.closest('#zen-sidebar-foot-buttons')) return;
|
||||
if (
|
||||
event.target.closest('#zen-sidebar-foot-buttons') ||
|
||||
event.target.closest('#urlbar[zen-floating-urlbar="true"]')
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Only handle horizontal swipes
|
||||
if (event.direction === event.DIRECTION_LEFT || event.direction === event.DIRECTION_RIGHT) {
|
||||
|
||||
Reference in New Issue
Block a user