✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

Switch wheel zoom mode by modifier key

I have a chart dragmode is pan and zooming is done by the mouse wheel. The wheel zooms always the x and the y axis. Is it somehow possible to limit it to one axis when a modifier key is pressed?
E.g. with shift only the x axis is zooming with ctrl only the y axis is zooming?

1 Like