skyjake / lagrange

A Beautiful Gemini Client
https://gmi.skyjake.fi/lagrange/
BSD 2-Clause "Simplified" License
1.19k stars 62 forks source link

can't scroll with trackpads #605

Open primalmotion opened 1 year ago

primalmotion commented 1 year ago

I'm on Arch Linux, on Hyprland, and I tried with the latest flatpak version as well as the one from AUR and both shows the same issue. Two finger scrolling is not working (tried with an external trackpad, as well as the one built-in). I can scroll with up/down arrow, or by dragging the scroller, but that's all

skyjake commented 1 year ago

Hmm... This depends on how SDL sees the trackpad device and what kind of events it will send to the app. Typically trackpad scrolling is translated to mouse wheel events, and in most cases those are handled fine by Lagrange. Newer versions of SDL (2.0.18+) seem to support "precise" trackpad scrolling, which means per-pixel offsets, and those I am not handling yet.

How is your trackpad scrolling expected to behave? Does it work in larger steps like an emulated mouse wheel, or with per-pixel fine motions?

primalmotion commented 1 year ago

probably per pixel. I'm not sure how to check, but my stack is pretty recent, so I guess if this is now the default behavior, it's probably what I use