Fixed MultiLine drawing by preventing vertex insertion logic from stealing clicks during drawing
Deploy TrassenPlaner / deploy (push) Waiting to run
Details
Deploy TrassenPlaner / deploy (push) Waiting to run
Details
This commit is contained in:
parent
0e5c3cb674
commit
7d43513199
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue