From ca409966db8f5f30a30fb443680d127112450c5b Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Thu, 26 Jan 2017 16:29:49 -0500 Subject: [PATCH] Watch for mousemove/mouseup on window, not selection (closes #3800) --- modules/behavior/lasso.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/behavior/lasso.js b/modules/behavior/lasso.js index f42be7ccd..cfad8d9a6 100644 --- a/modules/behavior/lasso.js +++ b/modules/behavior/lasso.js @@ -16,7 +16,7 @@ export function behaviorLasso(context) { if (d3.event.button === button && d3.event.shiftKey === true) { lasso = null; - selection + d3.select(window) .on('mousemove.lasso', mousemove) .on('mouseup.lasso', mouseup); @@ -58,7 +58,7 @@ export function behaviorLasso(context) { function mouseup() { - selection + d3.select(window) .on('mousemove.lasso', null) .on('mouseup.lasso', null);