From 4a03fa85429477c9ec24aa8fcde39ac88ed0ea0f Mon Sep 17 00:00:00 2001 From: hazam Date: Sat, 4 Jan 2020 15:58:31 +0500 Subject: [PATCH] Fix: right clicking while on the canvas messes up selection --- src/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index 434422ae4..c5ded250b 100644 --- a/src/index.tsx +++ b/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 -