diff --git a/src/Selection.js b/src/Selection.js index d643c31..2adbc0a 100644 --- a/src/Selection.js +++ b/src/Selection.js @@ -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)) {