mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
Fix: right clicking while on the canvas messes up selection
This commit is contained in:
parent
4886065443
commit
4a03fa8542
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue