mirror of
https://github.com/zen-browser/desktop.git
synced 2026-02-01 09:34:37 +00:00
fix: Hide the search popup when swiping workspaces, b=no-bug, c=workspaces
This commit is contained in:
@@ -708,6 +708,8 @@ var gZenWorkspaces = new (class extends nsZenMultiWindowFeature {
|
||||
_handleSwipeStart(event) {
|
||||
if (!this.workspaceEnabled) return;
|
||||
|
||||
gZenFolders.cancelPopupTimer();
|
||||
|
||||
document.documentElement.setAttribute('swipe-gesture', 'true');
|
||||
document.addEventListener('popupshown', this.popupOpenHandler, { once: true });
|
||||
|
||||
@@ -1575,6 +1577,7 @@ var gZenWorkspaces = new (class extends nsZenMultiWindowFeature {
|
||||
}
|
||||
|
||||
const workspaces = await this._workspaces();
|
||||
gZenFolders.cancelPopupTimer();
|
||||
|
||||
// Refresh tab cache
|
||||
for (const otherWorkspace of workspaces.workspaces) {
|
||||
|
||||
Reference in New Issue
Block a user