diff --git a/src/index.tsx b/src/index.tsx index c5ded250b..fb55ad8d9 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -963,9 +963,11 @@ class App extends React.Component<{}, AppState> { })); }} onMouseDown={e => { - if (e.button !== 0) { - return; - } + // only handle left mouse button + if (e.button !== 0) return; + // fixes mousemove causing selection of UI texts #32 + e.preventDefault(); + const x = e.clientX - (e.target as HTMLElement).offsetLeft -