aseprite / laf

A C++ library to create desktop applications
https://aseprite.github.io/laf/
MIT License
276 stars 60 forks source link

Mac Mouse Wheel Does Not Zoom (fix: https://github.com/aseprite/aseprite/issues/2695) #39

Closed Gasparoken closed 2 years ago

Gasparoken commented 2 years ago

Prior this fix, the scroll wheel action in a Logitech MX Master mouse was confused with a vertical scroll gesture on a touchpad.

dacap commented 2 years ago

Thanks @Gasparoken, I've just cherry-picked here: https://github.com/aseprite/laf/commit/929fca1def11ee9ff5618aede553046f4b481ad2

Tested with a touchpad, magic mouse, a regular PC mouse, and Wacom Intuos. First two devices report the phase/momentumPhase correctly, and last ones don't report phase/momentumPhase, which is expected (there is some pending issue in a future to improve the Wacom Intuos touch, but that is other issue).