mirror of
https://github.com/zen-browser/desktop.git
synced 2026-01-07 13:53:19 +00:00
fix: Fixed small issue on compact mode, b=(no-bug), c=compact-mode
This commit is contained in:
@@ -423,8 +423,14 @@ var gZenCompactModeManager = {
|
||||
this.sidebar.getAttribute('supress-primary-adjustment') === 'true'
|
||||
) {
|
||||
this._hasHoveredUrlbar = this.sidebar.getAttribute('supress-primary-adjustment') !== 'true';
|
||||
if (event.explicitOriginalTarget.closest('#urlbar[zen-floating-urlbar]')) {
|
||||
window.requestAnimationFrame(() => {
|
||||
target.removeAttribute('zen-has-hover');
|
||||
});
|
||||
}
|
||||
return;
|
||||
}
|
||||
delete this._hasHoveredUrlbar;
|
||||
window.requestAnimationFrame(() => target.setAttribute('zen-has-hover', 'true'));
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user