@gemx-dev/clarity-visualize 0.8.65 → 0.8.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -998,7 +998,9 @@ var HeatmapHelper = /** @class */ (function () {
|
|
|
998
998
|
if (e.tagName === "CANVAS" /* Constant.Canvas */ || (e.id && e.id.indexOf("clarity-" /* Constant.ClarityPrefix */) === 0)) {
|
|
999
999
|
continue;
|
|
1000
1000
|
}
|
|
1001
|
-
|
|
1001
|
+
// Consider visible if the top element is the element itself OR a descendant of it
|
|
1002
|
+
// (e.g. a BUTTON containing P/SPAN children — children will appear on top in elementsFromPoint)
|
|
1003
|
+
visibility = e === el || el.contains(e);
|
|
1002
1004
|
shadowElement = e.shadowRoot && e.shadowRoot != doc ? e.shadowRoot : null;
|
|
1003
1005
|
break;
|
|
1004
1006
|
}
|