-
Notifications
You must be signed in to change notification settings - Fork 6
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
First scroll event is always ignored on X11 #19
Comments
Hello and thanks for the feedback! No, the extension should not ignore first scroll event over a panel, and it does not reproducing for me. But the scroll events system is tricky and depends on your environment configuration, such as windowing system and pointing device. I suppose there are several possible reasons of described behavior:
where Please, capture some scroll events (the first one, which is ignored, and then accepted ones; there may be really lot of events per scroll gesture for some devices, that's ok) and paste them here. |
Thank you for this very detailed instructions! In order:
The first event ignored prints this (both events were logged for the one mouse scroll):
Then the next 2 events are working as expected:
Note also that after the first ignored event, all subsequent events are taken into account as long as I keep my mouse on the panel. As soon as I move it away and back on it, the first even is ignored (and we get that strange extra event in the logs as above) |
Thank you for logs! Seems like your environment produces zero-length Clutter.SMOOTH scroll event as "first one" (like you are using touchpad or touchscreen) but only once — which is weird. May be a minor bug in Gnome Shell, but the extension should fallback to non-Clutter.SMOOTH events in this case anyway (which I have not tested properly, eh). As a workaround, you may try to set "Switching timeout" extension setting to zero. That's not really a good solution and may be even less useful than current behaviour, but it may work if you are using only mouse (and it scrolls accurately enough) and not a touch devices within your shell. Also, could you please provide the distro, windowing system (is it X11 or Wayland? It's mentioned in Gnome Control Center > About) and device type (mouse, I suppose) you are using? |
I also see this behaviour on Fedora 35 / GNOME 41 / X11. Note that panel scroll extension doesn't have this issue (but it's missing other features) so there might be some clues there. |
Fixed in v4.1.5, available also in extensions store. |
@mrEDitor I confirm this works as expected, thanks! |
Fix reverted in v4.1.6, see #20 for details. Some research made me think it's all Gnome Shell X11 fault and there is no reliable solution for bubbling events in Gnome Shell on X11. Currently I'm planning to introduce a kind of X11-specific workaround to ignore specific actor subtrees events. For now you can build 4.1.5-like behaving version for Gnome Shell 42 with X11 from |
Merged master to workaround#19 branch, in case anyone needs it for Gnome 43 |
Hi, thank you for the simple but great extension
I was wondering if it was on purpose that the first scroll event is always ignored?
Basically I move the mouse over the top panel, I scroll once, nothing happen, I scroll again, and then the workspace switches.
If it's on purpose, would there be the possibility of an option so that it directly switches without that extra scroll event?
The text was updated successfully, but these errors were encountered: