From: Dan Vanderkam Date: Wed, 19 Nov 2014 04:08:13 +0000 (-0500) Subject: use constant X-Git-Tag: v1.1.0~18^2~1 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=5e1abda5c1287540f5f1b5d879a7780ee0b7a2dc;p=dygraphs.git use constant --- 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) {