lv2 / pugl

A minimal portable API for embeddable GUIs
https://gitlab.com/lv2/pugl/
ISC License
181 stars 35 forks source link

Inconsistent horizontal scroll behaviour across platforms #113

Closed falkTX closed 1 year ago

falkTX commented 1 year ago

During my testing with a Linux laptop with a trackpad, I noticed that horizontal scroll behaves the inverse between Linux and macOS. I do not have direct access to that machine right now, but want to report the issue for posterity. I had the issue in https://github.com/DISTRHO/Cardinal/issues/582 where I noticed on a Linux machine that it was inverted, so fixed that by inverting on the plugin side, but then that made it wrong on macOS.

Basically the horizontal scroll on either macOS or Linux is inverted between each other. I was unable to try this on a Windows machine, so do not know what is the state there.

drobilla commented 1 year ago

Seems it was reversed on MacOS compared to X11 and Windows. The speeds with trackpads are wildly inconsistent, it looks like some explicit support for high resolution is needed, but direction fixed in 4d9059e anyway. I'm not able to test on MacOS with a mouse with a detented wheel.