fix interactable detecting (#2941)

This commit is contained in:
LawyZheng
2025-07-15 03:31:34 +08:00
committed by GitHub
parent 873b7b774d
commit 5363d33dcc

View File

@@ -617,7 +617,7 @@ function isHoverPointerElement(element, hoverStylesMap) {
// Check if element has hover styles that change cursor to pointer
// This is to handle the case where an element's cursor is "auto", but resolves to "pointer" on hover
if (elementCursor === "auto") {
if (elementCursor === "auto" || elementCursor === "default") {
// TODO: we need a better algorithm to match the selector with better performance
for (const [selector, styles] of hoverStylesMap) {
let shouldMatch = false;