From 5e1abda5c1287540f5f1b5d879a7780ee0b7a2dc Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Tue, 18 Nov 2014 23:08:13 -0500 Subject: [PATCH] use constant --- dygraph-interaction-model.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dygraph-interaction-model.js b/dygraph-interaction-model.js index e0b7630..8270c82 100644 --- a/dygraph-interaction-model.js +++ b/dygraph-interaction-model.js @@ -652,7 +652,7 @@ Dygraph.Interaction.defaultModel = { if (context.isZooming) { // When the mouse moves >200px from the chart edge, cancel the zoom. var d = distanceFromChart(event, g); - if (d < 200) { + if (d < DRAG_EDGE_MARGIN) { Dygraph.moveZoom(event, g, context); } else { if (context.dragEndX !== null) { -- 2.7.4