From e3f3427b31339202f872b89d9adda10679bfc428 Mon Sep 17 00:00:00 2001 From: Pete Hunt Date: Mon, 21 Sep 2020 01:15:40 -0700 Subject: [PATCH] Fix middle mouse panning on windows (#2172) --- src/components/App.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/App.tsx b/src/components/App.tsx index f099bdde..bbed3b82 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -3781,6 +3781,11 @@ class App extends React.Component { private handleWheel = withBatchedUpdates((event: WheelEvent) => { event.preventDefault(); + + if (isPanning) { + return; + } + const { deltaX, deltaY } = event; const { selectedElementIds, previousSelectedElementIds } = this.state;