mouseWheelListener
Runs onMouseWheel when the wheel turns over the component.
onMouseWheel is read when the event fires, so writing a fresh lambda on every recomposition registers nothing again.
Return
this chain with the mouse wheel callback declared on it.
Parameters
onMouseWheel
receives the event, whose wheelRotation counts the notches the wheel turned, negative away from the user; declaring one takes the event that would otherwise have reached the first ancestor with wheel events enabled.
See also
Attaches a MouseWheelListener (addMouseWheelListener/removeMouseWheelListener).
Return
this chain with the mouse wheel listener declared on it.
Parameters
listener
attached by identity, so a remembered instance stays put while a fresh one on every pass is detached and re-added.