Hello, @jk
Sorry for reaching you like this, but I couldn't come up with a better way 😋
This commit: https://github.com/skyjake/lagrange/commit/d9166d702c6093e0688dddb0352ebdaa8968e568
is likely the culprit for breaking scrolling as described in this issue: https://github.com/skyjake/lagrange/issues/612
I have the same configuration, using wayland SDL video driver and after updating Largange from 1.16.2 to 1.16.7, mouse wheel scrolling no longer works for me. When I rebuild 1.16.7 with said commit reverted, it magically works again.
@jk
I know, reverting it is no proper solution as it is a fix for something else, but I hope that it will help you narrowing the real cause of the issue down.
Thanks for Lagrange and Bubble! 👍
@jk
Hello again, new development here!
Turns out my issue wasn't really Wayland-related, but second display related or maybe 2nd display + Wayland-related as I have noticed mouse scrolling working just fine on my other machine with identical setup, but without second display.
Anyway, original issue I have reported persists in 1.17.0
But if I change one condition in isScrollableWithWheel_DocumentWidget_()
> hitChild_Window(win, coord_Window(win, x, y)) == d;
To the direct opposite (== to !=)…
@jk
It starts working for me!
I understand — it probably breaks something else, so my guess is that this condition should be more complex to take the second display into account.
I'm not experienced with SDL, nor am I well-versed in your code to come up with a proper solution myself, but maybe it would give you some ideas.
BTW it works even with out this "fix" if I keep either of mouse buttons pressed and use the scroll wheel.
I hope this helps.