It seems like the deltaY magnitude is not being taken into account when calculating the zoom level, so the diagram zooms out or zooms in very fast on platforms with smooth scrolling that report continuous scroll events, like macOS (which reports very frequent, very smooth scroll events regardless of whether you're using a wheel, a magic mouse or a touchpad)