Fix: right clicking while on the canvas messes up selection (#106)

Fix: right clicking while on the canvas messes up selection
This commit is contained in:
David Luzar 2020-01-04 12:39:06 +01:00 committed by GitHub
commit 2d0934fdd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 -