Fix: right clicking while on the canvas messes up selection
This commit is contained in:
parent
4886065443
commit
4a03fa8542
@ -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 -
|
||||
|
Loading…
x
Reference in New Issue
Block a user