From 977d41ca1466e6a1975a26098c481c1e6c1f170d Mon Sep 17 00:00:00 2001 From: Quincy Morgan Date: Sun, 5 Apr 2020 17:33:22 -0700 Subject: [PATCH] Update lasso function names to use `pointer` instead of `mouse` --- modules/behavior/lasso.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/behavior/lasso.js b/modules/behavior/lasso.js index 337a87f17..cec7e8fb5 100644 --- a/modules/behavior/lasso.js +++ b/modules/behavior/lasso.js @@ -14,21 +14,21 @@ export function behaviorLasso(context) { var lasso; - function mousedown() { + function pointerdown() { var button = 0; // left if (d3_event.button === button && d3_event.shiftKey === true) { lasso = null; d3_select(window) - .on(_pointerPrefix + 'move.lasso', mousemove) - .on(_pointerPrefix + 'up.lasso', mouseup); + .on(_pointerPrefix + 'move.lasso', pointermove) + .on(_pointerPrefix + 'up.lasso', pointerup); d3_event.stopPropagation(); } } - function mousemove() { + function pointermove() { if (!lasso) { lasso = uiLasso(context); context.surface().call(lasso); @@ -63,7 +63,7 @@ export function behaviorLasso(context) { } - function mouseup() { + function pointerup() { d3_select(window) .on(_pointerPrefix + 'move.lasso', null) .on(_pointerPrefix + 'up.lasso', null); @@ -79,7 +79,7 @@ export function behaviorLasso(context) { } selection - .on(_pointerPrefix + 'down.lasso', mousedown); + .on(_pointerPrefix + 'down.lasso', pointerdown); };