Hello, @jk
Sorry for reaching you like this, but I couldn't come up with a better way 😋
This commit: github.com/skyjake/lagrange/co
is likely the culprit for breaking scrolling as described in this issue: github.com/skyjake/lagrange/is
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! 👍

Show thread

@m0xee Thanks for the tip! This should help with debugging the issue and finding a workaround for Wayland.

@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 !=)…

Follow

@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.

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml