fix: Fixed small issue on compact mode, b=(no-bug), c=compact-mode

This commit is contained in:
mr. m
2025-05-04 02:18:41 +02:00
parent 6ccbdcbdfa
commit 56275abbaf

View File

@@ -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'));
};