Strange scroll wheel behaviour, some apps ignores first scroll
Hey Bazzite users, devs and all.
I'm really enjoying the latest stable Bazzite on my GDP WIN 4 6800U. Only a few bugs, annoyances and crashes are holding me back from enjoying this fully.
One weird annoyance I've come across is a scroll wheel bug. When hovering the cursor over some apps, the first scroll using the scroll wheel on a mouse is ignored. I have currently tested these apps that all have this behaviour:
- Discord,
- Steam on the desktop,
- Steam in Game Mode, all interfaces, webview, etc.
- Steam in Big Picture
It happens when you hover over the window and starts scrolling, When the cursor leaves the window and comes back, it begins again, loses the first scroll.
It does not happen on Firefox, Telegram and KDE native windows, like Discover, file manager and settings.
Seems to have something to do with Electron apps?
I've tested multiple mice (both corded and wireless) and USB dongles, they all do the same. It is not hardware related.
All desktop, compositor, X11, Wayland and general settings are standard, out of the box. I'm fairly certain this happens on a completely new install on other hardware too.
In the videos I have attached, I am hovering over different apps and doing two scrolls every time. Firefox does two, steam and discord does one.
6 Replies
xwayland issue, unless you can replicate with x11
all the affected programs you mention all run inside xwayland as far as i know (including gamemode i believe even though the gamemode session runs inside gamescope, but steam itself uses xwayland)
Thanks for the quick answer.
I tried running the
ujust _toggle_wayland
command to toggle Wayland and rebooted, but now it won't let me log in to the desktop session, just restarts after it has turned on and off screen a couple of times.
I toggled it again from decky terminal (fortunate I had that) and desktop works again in Wayland.
Same issues with scrolling as beforex11 doesnt work on my hardware either, doesnt even give me any errors in the logs
but my guess is that this is an xwayland exclusive issue because of how xwayland works (since it essentially is a display server within a display server)
Weren't X11 supposed to be phased out a long time ago? Even long before Bazzite came to be.
Having a display server that was meant to serve clients over the network, running locally on a single computer sounds overly complicated and not very good for input lag.
Mind you, I'm kinda new to using a desktop on a Linux PC, Bazzite with KDE is only my second distro with a desktop environment (first was ChimeraOS with Gnome half a year ago till a week ago. I think ChimeraOS ran X11, and that worked okay in desktop mode on my win4) I've run for my handheld
x11 is in the process of being phased out in fedora (and i like to imagine it lit a fire under nvidias butt, even if it didnt)
For Google to index this (it's already done, I ran into my own post searching for this again today, less than 24h after creation) so other people with the same issues searching for this in the future can find it, here's more information and workarounds for this bug (it's a long standing bug, and not related to/limited to Bazzite Xwayland implementation):
https://bugzilla.redhat.com/show_bug.cgi?id=1963702
https://askubuntu.com/a/1467093
https://bbs.archlinux.org/viewtopic.php?id=223470
The core of this problem is gtk3, GDK_CORE_DEVICE_EVENTS, an environment variable called MOZ_USE_XINPUT2.
Fixes for chromium based apps can be done with a startup variable
--disable-high-precision-scrolling
Ask Ubuntu
Mouse wheel scrolling ignores first scroll
I installed Ubuntu 15.10 in a VirtualBox in Windows 7 and everything is working as expected so far apart from one little thing that drives me crazy.
It happens in gnome applications like gedit and