zsviczian 1 year ago
parent
commit
d64ac92cc2
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/components/App.tsx

+ 3 - 1
src/components/App.tsx

@@ -5955,7 +5955,9 @@ class App extends React.Component<AppProps, AppState> {
   ) {
     return withBatchedUpdatesThrottled((event: PointerEvent) => {
       //To avoid pointerMove canceling the selection of locked elements on mobile
-      if(Boolean(this.state.contextMenu)) return;
+      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