reduce hover style map (#1634)

This commit is contained in:
Shuchang Zheng
2025-01-24 16:18:42 +08:00
committed by GitHub
parent e31b18fb00
commit 1c2425171f

View File

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