Skip to content

Commit f257728

Browse files
authored
Ensure pan works when zoom is disabled (#203)
1 parent f779867 commit f257728

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/plugin.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,6 @@ var zoomPlugin = {
361361

362362
var options = chartInstance.options;
363363
var panThreshold = helpers.getValueOrDefault(options.pan ? options.pan.threshold : undefined, zoomNS.defaults.pan.threshold);
364-
if (!options.zoom || !options.zoom.enabled) {
365-
return;
366-
}
367364

368365
chartInstance.zoom._mouseDownHandler = function(event) {
369366
if (chartInstance.options.zoom.drag) {

0 commit comments

Comments
 (0)