Skip to content

armgit / mimik

Public Imported from GitHub
0

🎬 A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots πŸ“–

fix: spotlight SVG blocking clicks on target element

Luis Ortiza8aaa9024c97
diff --git a/src/core/guideme/overlay.ts b/src/core/guideme/overlay.ts
index a3ec44e..aa3fcb0 100644
--- a/src/core/guideme/overlay.ts
+++ b/src/core/guideme/overlay.ts
@@ -25,7 +25,12 @@ const STYLES = `
.spotlight {
position: fixed;
inset: 0;
+ pointer-events: none;
+ }
+
+ .spotlight path {
pointer-events: auto;
+ cursor: default;
}
.highlight {
@@ -272,7 +277,7 @@ export class GuideMeOverlay {
path.setAttribute('d', pathD);
svg.appendChild(path);
- svg.addEventListener('click', (e) => e.stopPropagation());
+ path.addEventListener('click', (e) => e.stopPropagation());
this.shadow.appendChild(svg);
this.spotlight = svg;
}