Fix middle mouse panning on windows (#2172)
This commit is contained in:
parent
c814917927
commit
e3f3427b31
@ -3781,6 +3781,11 @@ class App extends React.Component<ExcalidrawProps, AppState> {
|
||||
|
||||
private handleWheel = withBatchedUpdates((event: WheelEvent) => {
|
||||
event.preventDefault();
|
||||
|
||||
if (isPanning) {
|
||||
return;
|
||||
}
|
||||
|
||||
const { deltaX, deltaY } = event;
|
||||
const { selectedElementIds, previousSelectedElementIds } = this.state;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user