Watch for mousemove/mouseup on window, not selection

(closes #3800)
This commit is contained in:
Bryan Housel
2017-01-26 16:29:49 -05:00
parent 348b355e37
commit ca409966db
+2 -2
View File
@@ -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);