optimize hover style map (#1635)

This commit is contained in:
LawyZheng
2025-01-24 16:31:59 +08:00
committed by GitHub
parent b62a6fec23
commit 3a1b6d185d

View File

@@ -2017,12 +2017,10 @@ function getHoverStylesMap() {
}
// only need the style which includes the cursor attribute.
for (const prop in styles) {
if (prop.includes("cursor")) {
hoverMap.set(baseSelector, styles);
break;
}
if (!("cursor" in styles)) {
continue;
}
hoverMap.set(baseSelector, styles);
}
}
}