add pointer detect for h element (#2846)

Co-authored-by: lawyzheng <lawyzheng1106@gmail.com>
This commit is contained in:
Shuchang Zheng
2025-06-30 15:20:20 +09:00
committed by GitHub
parent 018c10277b
commit e448721468

View File

@@ -816,7 +816,11 @@ function isInteractable(element, hoverStylesMap) {
tagName === "p" ||
tagName === "td" ||
tagName === "svg" ||
tagName === "strong"
tagName === "strong" ||
tagName === "h1" ||
tagName === "h2" ||
tagName === "h3" ||
tagName === "h4"
) {
if (isHoverPointerElement(element, hoverStylesMap)) {
return true;