Skip to content

Commit f7969b3

Browse files
committed
[fixed] use client coords to get node during selection
1 parent 9d69a75 commit f7969b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Selection.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class Selection {
8080
, collides, offsetData;
8181

8282
// Right clicks
83-
if (e.which === 3 || e.button === 2 || !isOverContainer(node, e.pageX, e.pageY))
83+
if (e.which === 3 || e.button === 2 || !isOverContainer(node, e.clientX, e.clientY))
8484
return;
8585

8686
if (!this.globalMouse && node && !contains(node, e.target)) {

0 commit comments

Comments
 (0)