X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Finteraction.js;h=6ce65a8553e9e5999c5c13295852b502acd613f0;hb=2b66af4f76dcd72d22f5844cb7684f3cb79fde42;hp=4b852114c2e540b35366dc5b3c4daf25c143a206;hpb=178b1e0a5023bd55b8636242623e7eb82ac12d5d;p=dygraphs.git diff --git a/tests/interaction.js b/tests/interaction.js index 4b85211..6ce65a8 100644 --- a/tests/interaction.js +++ b/tests/interaction.js @@ -83,7 +83,8 @@ var lastClickedGraph = null; function clickV3(event, g, context) { lastClickedGraph = g; - Dygraph.cancelEvent(event); + event.preventDefault(); + event.stopPropagation(); } function scrollV3(event, g, context) { @@ -105,7 +106,8 @@ function scrollV3(event, g, context) { var yPct = percentages[1]; zoom(g, percentage, xPct, yPct); - Dygraph.cancelEvent(event); + event.preventDefault(); + event.stopPropagation(); } // Adjusts [x, y] toward each other by zoomInPercentage%