Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scroll wheel does not function under Wayland hw rendering #612

Open
kiefac opened this issue Aug 1, 2023 · 4 comments
Open

Scroll wheel does not function under Wayland hw rendering #612

kiefac opened this issue Aug 1, 2023 · 4 comments
Labels

Comments

@kiefac
Copy link

kiefac commented Aug 1, 2023

(Possibly related to #605?)
I am running the AUR package on KDE/KWin-wayland. Lagrange seems to be forced into very laggy software rendering to XWayland, so I set the SDL_VIDEODRIVER env var to wayland to see if it would smooth things out. While it does make Lagrange much smoother and more comfortable to use, it has the unfortunate side effect of making the scroll wheel do absolutely nothing, even in the preferences menu.
Arrow keys and PgUp/Dn still function to scroll the page. Ctrl-- and Ctrl-= still function to zoom. Scroll wheel still functions in every other application, of course.
I would assume this was some SDL-specific issue, but a quick google for "sdl wayland scroll wheel" doesn't appear to bring up anything relevant. Also, the scroll wheel works in Steam, which also uses SDL, when running with the same environment variable change.

@skyjake skyjake added the wayland label Aug 4, 2023
@rnb42
Copy link

rnb42 commented Aug 13, 2023

Same issue here on sway version 1.8.1 under Voidlinux

@jtietema
Copy link

Same issue with the flatpak version on Fedora 38 (Gnome edition on Wayland)

@tuomovee
Copy link

tuomovee commented Feb 1, 2024

Are you possibly using multiple displays? Does the scrolling work if you move the Lagrange window to 0,0 on your leftmost display?
I encountered a similar issue on KWin Wayland session and this seems to be related to coord_MouseWheelEvent() and how SDL_GetGlobalMouseState() and SDL_GetWindowPosition() misbehave under Wayland. I don't know the Lagrange codebase enough to say what are the adverse effects for this but removing the check for mousewheel event coordinates in dispatchEvent_Window() seems to allow the scrollwheel event to be processed despite SDL being bonkers under Wayland.

@maxgira
Copy link

maxgira commented Mar 26, 2024

This issue still persists in Fedora 39, with a GNOME Wayland session, both with the RPM package from the Fedora repos as well as the flatpak version.
I can also confirm as mentioned by @tuomovee that scrolling does work on one of my monitors.
I would greatly appreciate this issue getting fixed, as Lagrange is an otherwise great Gemini browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants