Skip to content

Commit dc33622

Browse files
authored
NEW - Issue plotly#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).
1 parent 5cc37e3 commit dc33622

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/plots/cartesian/dragbox.js

-7
Original file line numberDiff line numberDiff line change
@@ -434,13 +434,6 @@ function makeDragBox(gd, plotinfo, x, y, w, h, ns, ew) {
434434

435435
recomputeAxisLists();
436436

437-
// if the plot has scrollbars (more than a tiny excess)
438-
// disable scrollzoom too.
439-
if(pc.scrollHeight - pc.clientHeight > 10 ||
440-
pc.scrollWidth - pc.clientWidth > 10) {
441-
return;
442-
}
443-
444437
clearTimeout(redrawTimer);
445438

446439
var wheelDelta = -e.deltaY;

0 commit comments

Comments
 (0)