wxMaxima
Loading...
Searching...
No Matches
Data Structures
WheelSteps.h File Reference

Turns mouse wheel rotation into whole wheel steps. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  wxm::WheelSteps
 

Detailed Description

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.