Skip to content

Commit 413c3c6

Browse files
committed
Dont drag unless using primary mouse button.
1 parent ad438a1 commit 413c3c6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/react-ui-tree.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ class UITree extends Component {
9494
}
9595

9696
dragStart = (id, dom, e) => {
97+
if (e.button !== 0) return;
9798
this.dragging = {
9899
id: id,
99100
w: dom.offsetWidth,

0 commit comments

Comments
 (0)