From dc33622596b1a788e759622baa10e9a550caf841 Mon Sep 17 00:00:00 2001 From: marfoldi Date: Tue, 9 Oct 2018 12:01:37 +0200 Subject: [PATCH] NEW - Issue #2371: Not disabling scrollZoom Used to disable scrollzoom when the plot had scrollbars. Ended up with a plot which is not zoomable with mouse scroll on a page which had additional content (had a scrollbar). --- src/plots/cartesian/dragbox.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/plots/cartesian/dragbox.js b/src/plots/cartesian/dragbox.js index 6f8d03c8cc2..486fa4a97f1 100644 --- a/src/plots/cartesian/dragbox.js +++ b/src/plots/cartesian/dragbox.js @@ -434,13 +434,6 @@ function makeDragBox(gd, plotinfo, x, y, w, h, ns, ew) { recomputeAxisLists(); - // if the plot has scrollbars (more than a tiny excess) - // disable scrollzoom too. - if(pc.scrollHeight - pc.clientHeight > 10 || - pc.scrollWidth - pc.clientWidth > 10) { - return; - } - clearTimeout(redrawTimer); var wheelDelta = -e.deltaY;