From a22927d4d1c7e4933aa3fd170f9e771b44c1191b Mon Sep 17 00:00:00 2001 From: dwelle <5153846+dwelle@users.noreply.github.com> Date: Tue, 7 Jan 2025 18:28:01 +0100 Subject: [PATCH] DEBUG --- packages/excalidraw/components/App.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/excalidraw/components/App.tsx b/packages/excalidraw/components/App.tsx index 5122151ed..8a5184782 100644 --- a/packages/excalidraw/components/App.tsx +++ b/packages/excalidraw/components/App.tsx @@ -6289,8 +6289,6 @@ class App extends React.Component { ) => { this.maybeCleanupAfterMissingPointerUp(event.nativeEvent); - this.lastPointerDownEvent = event; - this.maybeUnfollowRemoteUser(); if (this.state.searchMatches) { @@ -6390,6 +6388,8 @@ class App extends React.Component { return; } + this.lastPointerDownEvent = event; + // we must exit before we set `cursorButton` state and `savePointer` // else it will send pointer state & laser pointer events in collab when // panning