Handle gestures properly
More to follow. This is just added here so I won't forget...
Currently, Elements supports two-finger swipes for scrolling and also for adjusting sliders. However, there's "natural scroll" typically set by default. I personally set it the other way, although I should probably get used to the "natural" way. Anyway, as a consequence of this, if you have your setting in the "natural;" direction, the direction of vertical swipes for sliders is incorrectly reversed! (did anyone notice that?). I do not know yet if there's a cross-platform way to detect the "natural/reversed" setting. What's probably best for now is to have a theme setting for this so it can be set by the application.
Ideally, and I've been mulling about this for some time now, it's probably best to use a multi-touch library for properly dealing with this. I'm looking at gainput: https://github.com/jkuhlmann/gainput which handles gestures and a lot more.
vertical swipes for sliders is incorrectly reversed!
In MacOS, it is horizontally reversed. In Windows, using Asus "Smart" Gesture, both are reversed. Grrr! I really need a proper way to deal with this.
Does anyone know (if there is) a way to detect the global settings for "Natural" (reversed) and "Normal" trackpad scrolling in Windows and Linux? In MacOS, this is already fixed with this code: https://bit.ly/35CiwIp
I can't figure out if there's a corresponding API in Windows or Linux. Is there? If not, I'm inclined to just just have these as a settable "theme" parameter.
Why is this important? I use two-finger swipe for sliders and dials. In these elements, swipe up or right should always be value up an swipe down or left should always be value down. Try placing the cursor in one of the sliders or dial and do a two-finger up/down swipe to see what I mean.
Maybe this? works on wayland and x11, I think. https://wayland.freedesktop.org/libinput/doc/latest/api/group__config.html#gab4074b193c4350597d2221c4c34c0d15
Maybe this? works on wayland and x11, I think. https://wayland.freedesktop.org/libinput/doc/latest/api/group__config.html#gab4074b193c4350597d2221c4c34c0d15
Nice! I hope I can find anythin on WIndows!
https://stackoverflow.com/questions/33153876/in-c-how-can-i-programmatically-detect-the-reverse-scrolling-setting-on-windo via registry?