From 7d43513199fd3da7a14754e4080bf5c9c42abf03 Mon Sep 17 00:00:00 2001 From: Johannes Baumeister Date: Wed, 15 Apr 2026 22:12:02 +0200 Subject: [PATCH] Fixed MultiLine drawing by preventing vertex insertion logic from stealing clicks during drawing --- index.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 547886f..9985f05 100644 --- a/index.html +++ b/index.html @@ -2516,9 +2516,8 @@ // Global Map Click for generous vertex insertion ("Click anywhere near the line") const handleVertexInsertion = (e) => { if (state.isMeasuring) return; - - // Allow native drawing to process if we are currently drawing forward and click far away, - // but we still want to be able to insert points during drawing if we click an existing segment. + // VERY IMPORTANT: Don't interfere if we are actively drawing a path + if (map.editTools && map.editTools.drawing()) return; const variant = state.variants.find(v => v.active); if (!variant) return;