projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #674 from danvk/module
[dygraphs.git]
/
gallery
/
interaction-api.js
diff --git
a/gallery/interaction-api.js
b/gallery/interaction-api.js
index
ebdfce9
..
8f6d706
100644
(file)
--- a/
gallery/interaction-api.js
+++ b/
gallery/interaction-api.js
@@
-84,7
+84,7
@@
var lastClickedGraph = null;
function clickV3(event, g, context) {
lastClickedGraph = g;
function clickV3(event, g, context) {
lastClickedGraph = g;
-
Dygraph.cancelEvent(event)
;
+
event.preventDefault();
;
}
function scrollV3(event, g, context) {
}
function scrollV3(event, g, context) {
@@
-106,7
+106,7
@@
function scrollV3(event, g, context) {
var yPct = percentages[1];
zoom(g, percentage, xPct, yPct);
var yPct = percentages[1];
zoom(g, percentage, xPct, yPct);
-
Dygraph.cancelEvent(event
);
+
event.preventDefault(
);
}
// Adjusts [x, y] toward each other by zoomInPercentage%
}
// Adjusts [x, y] toward each other by zoomInPercentage%