X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=inline;f=dygraph-interaction-model.js;h=8270c824e3bac5e76c25dfa30c02200d70e42793;hb=5e1abda5c1287540f5f1b5d879a7780ee0b7a2dc;hp=e0b7630eb7fcdd2cfa94e98ba39a6e76a03e4560;hpb=3f50dabbb12935605812184bfdd4a1485b1b9530;p=dygraphs.git 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) {