diff --git a/src/components/App.tsx b/src/components/App.tsx index 737d2bed..d38fa630 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -4479,12 +4479,15 @@ 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 if (this.handleCanvasPanUsingWheelOrSpaceDrag(event)) { return; } - this.lastPointerDownEvent = event; - this.setState({ lastPointerDownWith: event.pointerType, cursorButton: "down",