Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

Fix: right clicking while on the canvas messes up selection

hazam4a03fa854294
diff --git a/src/index.tsx b/src/index.tsx
index 434422ae45..c5ded250ba 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 -