Fixed MultiLine drawing by preventing vertex insertion logic from stealing clicks during drawing
Deploy TrassenPlaner / deploy (push) Waiting to run Details

This commit is contained in:
Johannes Baumeister 2026-04-15 22:12:02 +02:00
parent 0e5c3cb674
commit 7d43513199
1 changed files with 2 additions and 3 deletions

View File

@ -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;