mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-11-11 00:04:23 +01:00
lint
This commit is contained in:
@@ -5955,7 +5955,9 @@ class App extends React.Component<AppProps, AppState> {
|
|||||||
) {
|
) {
|
||||||
return withBatchedUpdatesThrottled((event: PointerEvent) => {
|
return withBatchedUpdatesThrottled((event: PointerEvent) => {
|
||||||
//To avoid pointerMove canceling the selection of locked elements on mobile
|
//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
|
// We need to initialize dragOffsetXY only after we've updated
|
||||||
// `state.selectedElementIds` on pointerDown. Doing it here in pointerMove
|
// `state.selectedElementIds` on pointerDown. Doing it here in pointerMove
|
||||||
|
|||||||
Reference in New Issue
Block a user