Zooming in using the mouse wheel zooms in more then zooming out with the mouse wheel.
If you just add
wheel: {
enabled: true
}
and then zoom in on step, the zoomLevel is 1.11, when you then zoom out on step, the zoomLevel is 1.01. This means that you always have to zoom out once more then what you zoomed in if you want to go back to zoomLevel 1. Also setting the speed property on the wheel object doesnt fix this.
in the config of the demo chart here https://www.chartjs.org/chartjs-plugin-zoom/latest/samples/api.html.
Then zoom in once using the mouse wheel, zoom out once using the mouse wheel. After that if you now click on the 'Reset zoom' button you will notice that the chart zooms out just a tiny bit more.
Zooming in using the mouse wheel zooms in more then zooming out with the mouse wheel.
If you just add
and then zoom in on step, the zoomLevel is 1.11, when you then zoom out on step, the zoomLevel is 1.01. This means that you always have to zoom out once more then what you zoomed in if you want to go back to zoomLevel 1. Also setting the speed property on the wheel object doesnt fix this.
You can try this for yourself by putting this
in the config of the demo chart here https://www.chartjs.org/chartjs-plugin-zoom/latest/samples/api.html. Then zoom in once using the mouse wheel, zoom out once using the mouse wheel. After that if you now click on the 'Reset zoom' button you will notice that the chart zooms out just a tiny bit more.