How do I invert the scroll direction on a Google Graph?
Asked Answered
P

1

6

On a Google Line Chart like https://jsfiddle.net/j2jbLt9e/, how do I change the direction of the zoom? I want my graph to zoom in when I scroll up on the mouse wheel instead of zooming out (the default behavior).

According to the documentation, explorer.zoomDelta can be adjusted for zoom customizations, but inverting the default value of 1.5 leads to odd behavior.

Presa answered 8/11, 2016 at 15:46 Comment(0)
C
0

If you set the zoomDelta to a value between 0 and 1 it will zoom in the "correct" direction.

Calcify answered 28/8, 2022 at 7:24 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.