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(editor): keep the click target pulsing while it is selected

Luis Ortizaa7a77a635e1
diff --git a/src/ui/shared/AnnotationEditor.tsx b/src/ui/shared/AnnotationEditor.tsx
index e16ac17..dd7707c 100644
--- a/src/ui/shared/AnnotationEditor.tsx
+++ b/src/ui/shared/AnnotationEditor.tsx
@@ -496,7 +496,7 @@ export default function AnnotationEditor({ screenshot, tool, onDone, onCancel }:
ctx.drawImage(bitmap, 0, 0, canvas.width, canvas.height);
for (const a of annotations) {
- if (a.type === 'target' && a.id !== selectedId) {
+ if (a.type === 'target') {
const gradient = ctx.createConicGradient(pulse * Math.PI * 2, a.x + a.w / 2, a.y + a.h / 2);
for (const [stop, v, s] of TARGET_SWEEP) gradient.addColorStop(stop, shadeOf(a.color, v, s));
ctx.save();