mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
Fix middle mouse panning on windows (#2172)
This commit is contained in:
parent
c814917927
commit
e3f3427b31
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue