mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-07 18:36:36 +00:00
Fix hover attribute clearing logic in ZenCompactMode
This commit is contained in:
@@ -458,7 +458,7 @@ var gZenCompactModeManager = {
|
|||||||
// Clear hover attributes from all hoverable elements
|
// Clear hover attributes from all hoverable elements
|
||||||
for (let entry of this.hoverableElements) {
|
for (let entry of this.hoverableElements) {
|
||||||
const target = entry.element;
|
const target = entry.element;
|
||||||
if (target) {
|
if (target && !target.matches(':hover') && target.hasAttribute('zen-has-hover')) {
|
||||||
target.removeAttribute('zen-has-hover');
|
target.removeAttribute('zen-has-hover');
|
||||||
this.clearFlashTimeout('has-hover' + target.id);
|
this.clearFlashTimeout('has-hover' + target.id);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user