We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8680b6e commit d3970f5Copy full SHA for d3970f5
src/plugin.js
@@ -482,7 +482,7 @@ var zoomPlugin = {
482
chartInstance.$zoom._dragZoomStart = null;
483
chartInstance.$zoom._dragZoomEnd = null;
484
485
- var zoomThreshold = options.zoom && options.zoom.threshold || 0;
+ var zoomThreshold = (options.zoom && options.zoom.threshold) || 0;
486
if (dragDistanceX <= zoomThreshold && dragDistanceY <= zoomThreshold) {
487
return;
488
}
0 commit comments