Skip to content

Commit

Permalink
[fixed] use client coords to get node during selection
Browse files Browse the repository at this point in the history
  • Loading branch information
jquense committed Sep 30, 2015
1 parent 9d69a75 commit f7969b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class Selection {
, collides, offsetData;

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

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

0 comments on commit f7969b3

Please sign in to comment.