mirror of
https://github.com/zen-browser/desktop.git
synced 2025-07-07 23:00:01 +02:00
feat: Always mantain hover state after using app commands for switching workspaces, b=no-bug, c=workspaces
This commit is contained in:
parent
ebd1910bb8
commit
ffab4a8c02
1 changed files with 4 additions and 1 deletions
|
@ -524,7 +524,7 @@ var gZenWorkspaces = new (class extends ZenMultiWindowFeature {
|
|||
|
||||
_handleAppCommand(event) {
|
||||
// note: Dont use this._hoveringSidebar as it's not as reliable as checking for :hover
|
||||
if (!this.workspaceEnabled || !gNavToolbox.matches(':hover')) {
|
||||
if (!this.workspaceEnabled || !this._hoveringSidebar) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -542,6 +542,9 @@ var gZenWorkspaces = new (class extends ZenMultiWindowFeature {
|
|||
event.preventDefault();
|
||||
break;
|
||||
}
|
||||
requestAnimationFrame(() => {
|
||||
gNavToolbox.setAttribute('zen-has-hover', 'true');
|
||||
});
|
||||
}
|
||||
|
||||
_setupSidebarHandlers() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue