From 1d27ce16d8cb2184c46a66657ff40d0720ac8578 Mon Sep 17 00:00:00 2001 From: zsviczian Date: Sun, 12 Nov 2023 12:01:03 +0000 Subject: [PATCH] fix pointer move cancelling locked element selection --- src/components/App.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/App.tsx b/src/components/App.tsx index 56dc795f4..fc37c3c8b 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -5954,6 +5954,9 @@ class App extends React.Component { pointerDownState: PointerDownState, ) { return withBatchedUpdatesThrottled((event: PointerEvent) => { + //To avoid pointerMove canceling the selection of locked elements on mobile + if(Boolean(this.state.contextMenu)) return; + // We need to initialize dragOffsetXY only after we've updated // `state.selectedElementIds` on pointerDown. Doing it here in pointerMove // event handler should hopefully ensure we're already working with