1
0
Fork 1
mirror of https://github.com/zen-browser/desktop.git synced 2025-07-08 04:49:59 +02:00

feat: Always mantain hover state after using app commands for switching workspaces, b=no-bug, c=workspaces

This commit is contained in:
Mr. M 2025-06-08 01:21:45 +02:00
parent ebd1910bb8
commit ffab4a8c02
No known key found for this signature in database
GPG key ID: 6292C4C8F8652B18

View file

@ -524,7 +524,7 @@ var gZenWorkspaces = new (class extends ZenMultiWindowFeature {
_handleAppCommand(event) { _handleAppCommand(event) {
// note: Dont use this._hoveringSidebar as it's not as reliable as checking for :hover // 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; return;
} }
@ -542,6 +542,9 @@ var gZenWorkspaces = new (class extends ZenMultiWindowFeature {
event.preventDefault(); event.preventDefault();
break; break;
} }
requestAnimationFrame(() => {
gNavToolbox.setAttribute('zen-has-hover', 'true');
});
} }
_setupSidebarHandlers() { _setupSidebarHandlers() {