Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
parent
f20ba90ffa
commit
4ea079eb85
@ -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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user