|
@@ -4479,12 +4479,15 @@ class App extends React.Component<AppProps, AppState> {
|
|
return;
|
|
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)) {
|
|
if (this.handleCanvasPanUsingWheelOrSpaceDrag(event)) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
- this.lastPointerDownEvent = event;
|
|
|
|
-
|
|
|
|
this.setState({
|
|
this.setState({
|
|
lastPointerDownWith: event.pointerType,
|
|
lastPointerDownWith: event.pointerType,
|
|
cursorButton: "down",
|
|
cursorButton: "down",
|