Fix hover attribute clearing logic in ZenCompactMode

This commit is contained in:
mr. m
2025-03-11 08:00:59 +01:00
parent 0a32810f36
commit 2d333a23a4

View File

@@ -458,7 +458,7 @@ var gZenCompactModeManager = {
// Clear hover attributes from all hoverable elements
for (let entry of this.hoverableElements) {
const target = entry.element;
if (target) {
if (target && !target.matches(':hover') && target.hasAttribute('zen-has-hover')) {
target.removeAttribute('zen-has-hover');
this.clearFlashTimeout('has-hover' + target.id);
}