-
Notifications
You must be signed in to change notification settings - Fork 88
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
Scrolling in one app carries over the scroll delta when switching to a new app and scrolling #2331
Comments
I'm able to recreate this on an Oryx Pro only when the two apps are overlapping each other, the mouse cursor is placed in the overlapping area, and the mouse cursor is not moved outside of the second app after switching and before attempting to scroll. |
Great catch on the overlapping windows! That's the same behavior I'm seeing here, exactly. |
Same here Reproduced on Live USB on Pop!_OS 22.04 The bug is not present in Pop!_OS 21.10 (also tested on Live USB) I assume it has something to do with Chromium/Electron apps. I'm able to reproduce it when switching from the Firefox browser to an Electron app like VSCode or Signal, but when switching back from the Electron app to Firefox, Firefox's scroll isn't affected. |
I have the same issue. It always messes up the scroll position when switching between vscode / chromium, which is really annoying for coding. The same happens for discord, slack and ytmdesktop, which I believe are all chromium based (electron apps). EDIT: Just found out this is not an issue when using Wayland |
I can confirm that switching to Wayland helps. Enabling Wayland: https://unix.stackexchange.com/questions/700938/enable-wayland-in-popos-22-04 |
This is super frustrating, it makes my machine unusable for development due to the disorienting nature of the bug. I'm fairly worried at this point, here's a 5 year old open bug filed against VSCode with the same problem: If anyone has any ideas on where the problem may lie, I'm going to start digging in and see if I can come up with a patch. |
Found on the linked thread -- for whatever reason if you install What's weird is that One more workaround (right click and left click before switching apps): microsoft/vscode#28795 (comment) |
Thank you, @japostoles for your determination. I've been experiencing this for a long time and thought it was just me. It's hard to believe the bug is more than 5 years old! If I can help test or brainstorm let me know. |
More info: https://bugs.chromium.org/p/chromium/issues/detail?id=608246
More info:
Edit to add last seemingly relevant note:
|
After installing imwheel the problem still persist. |
It's worth noticing that the issue exists on the latest version 22.04 but not on the older ones 21.10 or 21.04 (I was using those versions and didn't have that bug until upgrading to 22.04). So Chromium bug is one thing, but things that changed (Gnome version, kernel version, something else?) are also a culprit for that bug. |
Hi, I'm using Ubuntu, not Pop-OS. But I get the same bug. |
In my case that can't be Nvidia drivers. I have only one, integrated graphic card |
This bug has something to do with x-org because switching to Wayland fix this issue. |
Switching to Wayland and installing |
I'm suspicious of the packaged version of mutter, or other gnome components. See https://gitlab.gnome.org/GNOME/mutter/-/issues/401 For context, I'm pretty sure I stopped seeing problem back when I upgraded to Ubuntu 19.04 (with GNOME version 3.32 supposedly), and then I didn't see this bug through my use of Pop!_OS 20.04 through 21.10, and now that I'm on 22.04 I'm seeing this bug again. My belief is that the root cause is a bug in the Chrome source, where it's not handling the tracking of smooth scrolling deltas correctly, but my understanding is that something in mutter papered over the alt-tab issue, which is good enough (as it sounds like the Chrome devs have little interest in resolving this). I no longer use Chrome, but I can't easily avoid Electron apps, unfortunately (VSCode in particular -- as much as like (neo)vim, I depend on VSCode for work in various ways).
I know Pop!_OS has plenty of bespoke shortcuts/bindings -- did Pop!_OS change any logic regarding alt-tab? If so, that might be a good place to look, regardless of how benign the changes appear. Ah, and other thing I just realized, it might help to see if this happens on Ubuntu 22.04. |
This just started happening to me today. I did do an update from the Pop Shop this morning. Really annoying. :( It does only seem to be effecting Chromium apps for me. Switching between the OS windows seems to work perfectly. |
Having the same issue here :/, any new workarounds so far?? |
It seems installing |
I have had this problem for a whole year now, it happens when I'm switching apps (chrome and vscode). It is really annoying. |
I started experiencing this bug immediately after upgrading to POP_OS 22.04 |
Installing |
Hmm, It's been almost a month now since I installed |
Probably that's the reason why I keep having the issue, Can you share to us the command you used for starting up |
Sure, the command is just |
Thank you so much @handa26 :) I'll try this command and I'll reply again in this post to confirm if it works 👍🏻 |
I'm having this problem on Ubuntu since the upgrade to 22.04, and I created a GNOME Shell Extension as a temporary fix:
Would love to see if it works for you too! |
Wow, thank you for creating this :) that's true, |
Thanks @lucasresck, great work! |
is the problem still exist? |
Without @lucasresck's extension - yes |
Hello @handa26 and friends here :), I have tried for sometime already the fix using I did a research on that new issue and I simply found out it was caused by So my conclusion is that this issue is still happening in Pop!_OS... |
Huge thanks to @lucasresck for his amazing extension -- working with VSCode on Pop is a pleasant experience again! (The fact that we need an extension for this sends an awful message to non-Linux users but nvm) |
Happy to help! |
@lucasresck mad props for this. I was really frustrated with this issue and you fixed it. Thanks. |
I haven't seeing someone comment so i'll, vscodium doesn't have this issue, maybe another hint for solve the problem. And thanks @lucasresck for the extension. |
You're welcome! Happy to help |
All applications that are based on Chromium source code (e.g. Google Chrome, VS Code, all Electron apps) suffer from this bug. Steps to reproduce can be found at https://bugs.chromium.org/p/chromium/issues/detail?id=608246#c68 and my guess about the root cause is described at https://bugs.chromium.org/p/chromium/issues/detail?id=608246#c78 |
Hi, folks! A few users have been reporting that the problem is back on Pop!_OS when Alt+Tab Scroll Workaround extension is active (lucasresck/gnome-shell-extension-alt-tab-scroll-workaround#16). Have you also experienced this? |
I have, unfortunately and haven't had time to do further testing or try and fix it 😔 |
just wanted to comment that as of today, with Pop!_OS 22.04 LTS, i am still experiencing this issue :( |
I have this problem too, has been like this for years over multiple machines, one of the most annoying issues with PopOS. Haven't found a stable workaround so far. |
Hi, have you tried the Alt+Tab Scroll Workaround GNOME Extension? If so, did it not work? |
Thanks, I hadn't tried that one. I installed it but doesn't seem to do anything. Perhaps it's not compatible with Edge that I'm using? |
@tibbing, I don't think Edge is the problem. Some users have reported issues in Pop!_OS, which may be related to your problem. I created the extension to solve this specific bug in Ubuntu and it works until today. We can try to have this working in your machine as well, as it has already worked in Pop!_OS in the recent past—let me know. |
Also just noting this is still a bug. Do we know if it's pop_os itself or something else? |
Experience the same even in Ubuntu 24.04 using xorg gnome 4, kernel 6.8.4 and AlmaLinux |
I'm on Pop_OS! 22.04 LTS version, and the @lucasresck extension worked out of the box!!! |
Distribution (run
cat /etc/os-release
):NAME="Pop!_OS"
VERSION="22.04 LTS"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 22.04 LTS"
VERSION_ID="22.04"
HOME_URL="https://pop.system76.com"
SUPPORT_URL="https://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=jammy
UBUNTU_CODENAME=jammy
LOGO=distributor-logo-pop-os
Issue/Bug Description:
This is a tough one to explain, so I'll do my best.
Note: Using a touchpad / 2-finger scroll. This behavior didn't happen in the previous verison of POP_OS
I'll use two apps as an example: (A) Chromium and (B) VSCodium, but it seems to happen with any app that scrolls. To start, I'll have both (A) and (B) open with a long document. If I scroll down, let's say three screen-fulls in app (A), when I switch to app (B) and then scroll down, the scrollbar jumps down the exact same amount of "pixels" that were scrolled in app (A).
It's almost as if the scroll y offset is carrying over to the other app after an ALT-TAB.
Said another way:
The text was updated successfully, but these errors were encountered: