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:
commit
2d0934fdd9
@ -963,6 +963,9 @@ class App extends React.Component<{}, AppState> {
|
|||||||
}));
|
}));
|
||||||
}}
|
}}
|
||||||
onMouseDown={e => {
|
onMouseDown={e => {
|
||||||
|
if (e.button !== 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const x =
|
const x =
|
||||||
e.clientX -
|
e.clientX -
|
||||||
(e.target as HTMLElement).offsetLeft -
|
(e.target as HTMLElement).offsetLeft -
|
||||||
|
Loading…
x
Reference in New Issue
Block a user