Fix: right clicking while on the canvas messes up selection

This commit is contained in:
hazam 2020-01-04 15:58:31 +05:00
parent 4886065443
commit 4a03fa8542

View File

@ -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 -