Skip to content

Commit d3970f5

Browse files
authored
Fix no-mixed-operators lint warnings (#365)
1 parent 8680b6e commit d3970f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ var zoomPlugin = {
482482
chartInstance.$zoom._dragZoomStart = null;
483483
chartInstance.$zoom._dragZoomEnd = null;
484484

485-
var zoomThreshold = options.zoom && options.zoom.threshold || 0;
485+
var zoomThreshold = (options.zoom && options.zoom.threshold) || 0;
486486
if (dragDistanceX <= zoomThreshold && dragDistanceY <= zoomThreshold) {
487487
return;
488488
}

0 commit comments

Comments
 (0)