iandorr
(Damian Siskovic)
January 24, 2023, 3:50pm
2
Found a solution to this, still not completely sure why and there have been more solutions in the thread, but this worked for me:
https://extensions.gnome.org/extension/5282/alttab-scroll-workaround/
Just posting here in case anybody would have the same problem. Basically windows would listen to scroll events while other windows would be active, therefore after switching back to a window and scrolling, first the scroll from the other window would apply and then the scroll that is meant to happen. Hope that makes sense.
Thread about the problem:
opened 08:53AM - 15 Jun 17 UTC
bug
upstream
linux
electron
upstream-issue-linked
- VSCode Version: starting at 1.13.0, up to current
- OS Version: Fedora 24-27
…
Looks like VS Code is listening to mouse scroll events, even while it is not active in the window.
Related:
https://bugs.chromium.org/p/chromium/issues/detail?id=608246
https://bugs.chromium.org/p/chromium/issues/detail?id=807187
**Steps to Reproduce**
requirements: Browser (Chromium / Firefox / Google Chrome), VSCode Editor (Any file type. Ideally a long file to ensure the scroll is visible.)
VSCode: Leave cursor at top of file.
Browser: Scroll, excessively, (For a few seconds) down the page. Even if it's a blank tab with no content.
VSCode: Scroll, ever so slightly, in any direction.
You'll find the editor will jump suddenly further down the active file.
It seems VSCode is receiving the scroll events, for whatever reason; which are all suddenly evaluated upon any form of scroll input in the editor.
**Updates based on comments**
GUESS: Appears to be an issue with Electron and some input libraries?
Is not isolated to VScode
Fix: Does not yet exist.
Linux Workarounds (Not to be confused with a fix)
imwheel - not suitable for all users
wayland - not suitable for all users
Note: Ubuntu 19.04 (Desktop) appears to be using Wayland.
I'm not sure we will see further updates in here, which is a bit disappointing from the developers, given the amount of comments from affected people. I would like to have some official guidance, even if it's pointing us to other resources.
Cheers,
Damian
2 Likes