From e29a841ba3089483e62d2aea6d4c386745d44b6a Mon Sep 17 00:00:00 2001 From: Tim Nyborg Date: Mon, 30 Jan 2023 14:33:00 +0000 Subject: [PATCH] Prevent altering geometry on map drag end --- modules/edit-modes/src/lib/modify-mode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/edit-modes/src/lib/modify-mode.ts b/modules/edit-modes/src/lib/modify-mode.ts index 6a7dcf2c0..852fa5b00 100644 --- a/modules/edit-modes/src/lib/modify-mode.ts +++ b/modules/edit-modes/src/lib/modify-mode.ts @@ -273,7 +273,7 @@ export class ModifyMode extends GeoJsonEditMode { handleStopDragging(event: StopDraggingEvent, props: ModeProps) { const selectedFeatureIndexes = props.selectedIndexes; - const editHandle = getPickedEditHandle(event.picks); + const editHandle = getPickedEditHandle(event.pointerDownPicks); if (selectedFeatureIndexes.length && editHandle) { this._dragEditHandle('finishMovePosition', props, editHandle, event); }