projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f50dab
)
use constant
author
Dan Vanderkam
<danvdk@gmail.com>
Wed, 19 Nov 2014 04:08:13 +0000
(23:08 -0500)
committer
Dan Vanderkam
<danvdk@gmail.com>
Wed, 19 Nov 2014 04:08:13 +0000
(23:08 -0500)
dygraph-interaction-model.js
patch
|
blob
|
blame
|
history
diff --git
a/dygraph-interaction-model.js
b/dygraph-interaction-model.js
index
e0b7630
..
8270c82
100644
(file)
--- 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) {