mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix pointer move cancelling locked element selection
This commit is contained in:
parent
7b00089314
commit
1d27ce16d8
1 changed files with 3 additions and 0 deletions
|
@ -5954,6 +5954,9 @@ class App extends React.Component<AppProps, AppState> {
|
|||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue