Skip to content

Commit 0d70a8f

Browse files
committed
fix: enable pointer events for info badge and prevent hover updates
1 parent a308eae commit 0d70a8f

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/view/frontend/web/js/inspector.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ document.addEventListener('alpine:init', () => {
9696
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
9797
font-size: 11px;
9898
line-height: 1.6;
99-
pointer-events: none;
99+
pointer-events: auto;
100100
z-index: 10000000;
101101
display: none;
102102
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.05);
@@ -293,6 +293,11 @@ document.addEventListener('alpine:init', () => {
293293
return;
294294
}
295295

296+
// Don't update if mouse is over the info badge
297+
if (this.infoBadge && this.infoBadge.contains(e.target)) {
298+
return;
299+
}
300+
296301
const element = this.findInspectableElement(e.target);
297302

298303
// Clear any existing hover timeout

0 commit comments

Comments
 (0)