mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
parent
c623312380
commit
e0deb68875
1 changed files with 5 additions and 3 deletions
|
@ -984,9 +984,11 @@ class App extends React.Component<{}, AppState> {
|
||||||
}));
|
}));
|
||||||
}}
|
}}
|
||||||
onMouseDown={e => {
|
onMouseDown={e => {
|
||||||
if (e.button !== 0) {
|
// only handle left mouse button
|
||||||
return;
|
if (e.button !== 0) return;
|
||||||
}
|
// fixes mousemove causing selection of UI texts #32
|
||||||
|
e.preventDefault();
|
||||||
|
|
||||||
const x =
|
const x =
|
||||||
e.clientX -
|
e.clientX -
|
||||||
(e.target as HTMLElement).offsetLeft -
|
(e.target as HTMLElement).offsetLeft -
|
||||||
|
|
Loading…
Add table
Reference in a new issue