|
wxMaxima
|
Turns mouse wheel rotation into whole wheel steps. More...
Go to the source code of this file.
Data Structures | |
| class | wxm::WheelSteps |
Turns mouse wheel rotation into whole wheel steps.
A classic mouse wheel reports one event per notch, each carrying a rotation of exactly one wheel delta. Touchpads and high-resolution wheels (wxGTK on Wayland, macOS, precision touchpads on Windows) instead report many events carrying a small fraction of a delta each. Anything that reacts to the wheel in discrete steps – the frame of an animation, the zoom factor – would advance once per event on such a device, so a light touch flicks through dozens of steps. WheelSteps adds the fractions up and only reports a step once a whole delta has come together.