Browse Source

Fix: right clicking while on the canvas messes up selection

hazam 5 years ago
parent
commit
4a03fa8542
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/index.tsx

+ 3 - 0
src/index.tsx

@@ -963,6 +963,9 @@ class App extends React.Component<{}, AppState> {
             }));
           }}
           onMouseDown={e => {
+            if (e.button !== 0) {
+              return;
+            }
             const x =
               e.clientX -
               (e.target as HTMLElement).offsetLeft -