Compare commits

...

2 Commits

Author SHA1 Message Date
zsviczian
d64ac92cc2 lint 2023-11-12 12:04:47 +00:00
zsviczian
1d27ce16d8 fix pointer move cancelling locked element selection 2023-11-12 12:01:03 +00:00

View File

@ -5954,6 +5954,11 @@ 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