Pārlūkot izejas kodu

Fix: right clicking while on the canvas messes up selection

hazam 5 gadi atpakaļ
vecāks
revīzija
4a03fa8542
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  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 -