Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fix(screenshot-editor): tighten annotation SVG hit targeting
Richie McIlroyb59e273c3f3b
diff --git a/apps/desktop/src/routes/screenshot-editor/AnnotationLayer.tsx b/apps/desktop/src/routes/screenshot-editor/AnnotationLayer.tsxindex c745bf99c..2bf44cbec 100644--- a/apps/desktop/src/routes/screenshot-editor/AnnotationLayer.tsx+++ b/apps/desktop/src/routes/screenshot-editor/AnnotationLayer.tsx@@ -173,8 +173,6 @@ export function AnnotationLayer(props: {return;}- if (tool === "ocr") return;-// Snapshot for drawingdrawSnapshot = {project: structuredClone(unwrap(project)),@@ -490,8 +488,10 @@ export function AnnotationLayer(props: {};const startDrag = (e: MouseEvent, id: string, handle?: string) => {+ e.preventDefault();e.stopPropagation();if (activeTool() !== "select") return;+ window.getSelection()?.removeAllRanges();const svg = (e.currentTarget as Element).closest("svg");if (!svg) return;@@ -544,8 +544,9 @@ export function AnnotationLayer(props: {position: "absolute",top: 0,left: 0,- "pointer-events": "all",- "z-index": 10,+ "pointer-events":+ activeTool() === "select" && !dragState() ? "none" : "all",+ "z-index": 20,cursor:activeTool() === "select"? props.isPanning