electron
electron copied to clipboard
Horizontal Scroll Issue
Coming from VS Code where they have identified electron as the issue. https://github.com/microsoft/vscode/issues/56964
MX Master mouse horizontal scroll does not work or works intermittently.
Can confirm. Scrolling doesn't work as intended for VS Code or Trello.
I found a solution for this. You need to disable hardware acceleration in VS Code. To do that, open the command search (Ctrl + Shift + P
), then type in Configure Runtime Arguments
. Once the JSON file opens, add a new entry "disable-hardware-acceleration": true
. Then restart VS Code. Horizontal scrolling should work. I came to this conclusion from another app having this issue with the MX Master, then searching how to disable hardware acceleration for VS Code.
I just bought a Logitech MX Master 3, and the above solution does not work (yet) for me. Perhaps there is another part of the fix you have done unaware?
I just bought a Logitech MX Master 3, and the above solution does not work (yet) for me. Perhaps there is another part of the fix you have done unaware?
Same here i have just bought an MX master 3 as well and still not working
MX Master 2S here, same issue. The disable-hardware-acceleration fix has worked form me so far (that is, for 5 mins of testing), but it rly sucks to have to do that :(
Does Chrome have the same issue?
disable-hardware-acceleration did not fix it for me
Does Chrome have the same issue?
No it works fine in chrome but not in Firefox
edit: Also if i uninstall logitech's software for the mx master 3 it works just fine in VSCode
I just replaced a Microsoft Sculpt Ergonomic Mouse with a Logitech MX Master 25. Horizontal scrolling works in Chrome, Firefox, Excel, File Explorer, etc., but not in VS Code, Spotify, etc.
Really hope we can get this sorted out soon, I rely on horizontal scrolling quite a bit.
@JacobDB how did you get it to work on firefox it doesn't work in firefox for me.
@Dexy2811 honestly, I don't know, it just worked. I'm using Firefox Developer Edition, v73.0b4 (64-bit)
@JacobDB do you have Logitech options installed as well? i do and downloaded the version your on and didn't work
@Dexy2811 I do have Logitech Options installed – just tested again, and it still works.
Strangely, it seems to randomly start working in general in Electron apps. No idea why, I'll just be going about my day and suddenly it work. Then the next morning, after rebooting, it stops working again.
I'm also noticing this problem mostly in Brave and VS Code. Chrome seems to be ok, but in Brave most of the time horizontal scrolling doesn't work. Both Brave and VS Code are electron apps.
It's pretty random when it works and when it doesn't, sometimes it will start working randomly and it will keep working for a long time but then it will suddenly stop working again. I've noticed that sometimes toggling settings on/off in Logitech Options will revive it for a bit.
In Brave, for example when browsing Trello, using the wheel will initiate the horizontal scroll and scroll the screen for a few pixels, but then it will stop and not work again for a while.
Using Logitech MX Master 3
Related report in Brave: https://community.brave.com/t/horizontal-scrolling-doesnt-work/47148/11
Also here: https://github.com/brave/brave-browser/issues/5947
Something that might be relevant that I noticed in VS Code:
-
If you switch to a vs code tab that does NOT have code in it that exceeds the width of the viewport a horizontal scroll bar won't be shown and horizontal scrolling won't be allowed. If you scroll vertically until something does exceed the width of the window, the scroll bar will appear and horizontal scrolling with the wheel might work.
-
When the "bug" occurs, it will always allow scrolling for a bit before completely stopping and failing to respond to wheel events.
Dragging the scrollbar itself always works.
Strange thing I've noticed:
If I open a different non electron app (such as Chrome), and initiate a horizontal scroll in it with the wheel, the Electron based app will also initially react to the wheel. It's hit and miss whether it will get un-stuck completely or still hang after a few pixels of scrolling.
However, doing this repeatedly in the third party app usually eventually gets electron scrolling back online. (Until randomly failing again after switching to a different app and then back)
Weird glitch showing above. Simply rolling the scroll wheel left/right over Chrome, even if there's nothing to scroll in it, will fix Electron scrolling. Even without first clicking in Chrome to switch focus. It's enough that the mouse cursor is over Chrome.
Giving another app focus without using the horizontal scroll wheel in it will pretty reliably result in Electron scrolling being broken.
Strangely I've found that scrolling over FileZIlla specifically seems to always fix it for a long period of time. I have idea why that's the case, but I've been using it as a workaround for a few days now and as far as I can tell it consistently works.
After exploring this issue a lot, I noticed that if I lower the horizontal scroll speed / sensitivity, there is no longer a problem. When the horizontal scroll is too fast, it breaks and does not fix itself.
My issue was the same as described in most of these posts, especially in @andreialecu 's video.
If you are using a logitech mouse, setting the thumb wheel sensitivity to ~< 75% seems to do the trick. I have had no issues since, unless I am super zoomed in on text in vs code.
Sensitivity doesn't seem to make a difference to me unfortunately
I have good news and I have bad news. As opposed to before, it now started working for, most of the time. However, I have no idea when or why. I might have changed the sensitivity, or installed an update of the Logitech software, but I didn't quite notice the link immediately.
I did have one weird quirk, I scrolled horizontally, when there was only a tiny bit to be scrolled. It scrolled once, then froze and broke down. IIRC, it restarted working after I reloaded the VScode window.
Sorry I know I'm a little late to the party but none of the above suggestions seem to work very well or very long for me. Typically, the issue I see most is what @mglimmerveen had mentioned with the scroll working once then it just stops. This consistently happens every time I restart VS Code. Also, I would like to note that the tip from @andreialecu seems to work there are several caveats to using it that I detail below. I can also confirm that this seems to be the case not only for my MX master 3 but also for my G502 (that recently died thus the MX master 3) the same issues impacted that mouse as well.
I have ADHD and I often open more than one window of VS Code open at once. The tip described by @andreialecu only will work on one window at a time and if you switch to another window of VS Code the horizontal scrolling will is lost on all open windows. Then when I reapply the tip it will again work until I switch the active window again.
Related to this I use the horizontal scroll in any program (including chrome) on another desktop1 the horizontal scrolling will cease working on the active VS Code window on the other desktop.
I have no idea if any of these details will help to track down the issue. This is the single most annoying bug I have to deal with on a daily basis and I really hope that someone can track it down! Good luck!
1: Windows desktops which are available by using Start
+ Tab
Here's proof that Logitech is doing something specifically to make horizontal scrolling work for Chrome!
- Rename (or copy) the exe for the Electron/Chromium app that is having the problem to chrome.exe
- Launch the program by double clicking chrome.exe
- Horizontal scrolling now works perfect! WTF Logitech!
For me this works for VS Code by renaming code.exe to chrome.exe. (actually I made a copy so that code.exe is still available from the command prompt)
Found this on the Vivaldi forum. https://forum.vivaldi.net/topic/41537/logitech-smooth-scroll-extension-is-not-working-in-vivaldi/8
Interesting! There's a scrolling issue I filed some time ago that could potentially give insights into how Logitech Options works behind the scenes. From what I've noticed, Logitech Options does hook into Chromium based browsers (potentially not all but only whitelisted ones hence no Vivaldi?). Here's the issue: https://bugs.chromium.org/p/chromium/issues/detail?id=1044457
Still waiting for a proper fix, but I can confirm that with a MX Master (the first one) horizontal scroll on VS Code and Spotify work by using Shift + Vertical Scroll Wheel. I know it's not ideal. but it's something...
Have the same problem on Windows 10, vs code 1.45.1 and Logi MX Master 3 :(
I think the problem comes from Windows itself because it's not only Vscode but other app like Dbeaver got the same problem. I was using voyager GS distro (Xubuntu based). no problem so far.
Dbeaver uses electron The issue is with electron
I am a VS Code and Azure Data Studio user and I use them both on Linux and Windows.
Both my MX Master 2S and MX Master 3 are exhibiting the same intermittent horizontal scrolling behavior regardless if I use Linux or Windows.
I pretty much had this issue since owning my MX Master 2S back in 2017.
Happens with Logitech Control Plus (L510) model as well, using the Logitech Options app on Windows 10.
One clue: while tinkering in the Options app with side scrolling options, horizontal scrolling in vs code started working. BUT! when I performed the Reload Window
command, side scrolling worked briefly (for one notch) then stopped working. 🕵️
To me that indicates that while this problem surfaces with Logitech mice, there's definitely some process in electron or vs code that is severing the connection to horizontal scrolling.
@mosesoak the issue also happens on Linux and Options doesn't exist there. Native apps (like Firefox, LibreOffice) doesn't have an issue consuming and reacting to the horizontal scroll events.
@szszoke kösz -- hopefully the fact that the Reload Window command knocked it out just after the reload started will be a good clue for someone looking into this!
@codebytere @miniak @MarshallOfSound
pinging top contributors since this has gotten zero attention from any of the devs
@codebytere @miniak @MarshallOfSound
pinging top contributors since this has gotten zero attention from any of the devs
Yes, we need a solution.
There are over 1000 issues on this repository, so we cannot make promises with regard to when we'll be able to spend time on this. However, it is important to note that this may in fact not simply be an Electron issue, and rather a greater Chromium embedding one.
Specifically, per this comment: https://github.com/electron/electron/issues/20874#issuecomment-574775538 it also seems to be happening in Brave, and you will note if you look at the Brave repo that it is not, in fact, an Electron app, through it is likewise based on Chromium.
Possibly related:
- https://github.com/microsoft/vscode/issues/84136#issuecomment-655599016
The latest comment over there seems to imply that this is Logitech/Windows issue and not Electron. Also, this can be worked around by running the program as admin.
My horizontal scroll works when running VSCode on Mint Linux 20 in a Virtual Box hosted on Windows 10. However, it does not work on VSCode running directly on Windows 10.
also this seems to work: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/2096#issuecomment-444653912 I tried it several time and it worked.
- open vscode
- horizontally scroll on a supported app (e.g. edge or calendar app) a few time
- now horizontal scroll works on vscode too
This is definitely an issue with Logitech options and the way it hooks in to modify the mouse buttons.
Uninstalling options and there are no issues Running as Admin Change the exe to chrome.exe and logitech options will hook in correctly (though in the latest version of VS code 1.48.2, Electron 7.3.2, Chrome 78.0.3904.130, side scrolling will change tabs not side scroll the text window)
This can be closed out since this is very much outside of Electron as options is changing the normal side scroll mouse inputs. This is also why users running on systems with out the ability to install options have not had issues.
Weird glitch showing above. Simply rolling the scroll wheel left/right over Chrome, even if there's nothing to scroll in it, will fix Electron scrolling. Even without first clicking in Chrome to switch focus. It's enough that the mouse cursor is over Chrome.
Giving another app focus without using the horizontal scroll wheel in it will pretty reliably result in Electron scrolling being broken.
Same result if you do the same to any window where you know the horizontal scroll works like Windows Explorer, as explained here. Every Logitech mouse seems to have this issue. I don’t know if other brand has this feature. Although some linux users report it doesn’t work on their OS, it’s more a Windows specific issue so Microsoft and Logitech should work together to solve this. If anyone have link or email to logitech support/bug report so we can bugging them until they hear their users. This bug has been around all over the net for years with no effect on them.
Customer service won't respond, I even searched a logitech engineer on Github and while I did hear back from him, nothing came out of it... Pretty frustrating... 😐
Customer service won't respond, I even searched a logitech engineer on Github and while I did hear back from him, nothing came out of it... Pretty frustrating... 😐
Let’s go bugging them on social networks until their CM address the issue, sharing the link to this page. Mention @Logitech in most of the SN. If all the users do this, we could eventually get a reaction.
Or create a new ticket on their support site. You need to have registered your mouse as product first.
Workaround on Win 10: Run as administrator.
Found a hacky workaround for my MX Master 3. Previously, horizontal scroll would stop working right after the first scroll. It would stay non-functional until I restarted VS Code.
However if I open a second window (not tab!), switch to it and scroll there, then switch back to my main window, horizontal scroll resumes working and works 100% reliably. 🤷♂️
The Electron version reported on this issue is no longer supported. See our supported versions documentation.
If you're still experiencing this issue on a supported version, please open a new issue with an updated repro - a Fiddle is very appreciated.
Electron has a large issues backlog. To help our team prioritize, we're closing older issues and asking for new issues with updated repro steps if it affects a supported version. This helps sort what issues are still relevant and helps us fix them more quickly.
Thanks for your patience and understanding!
Can someone reopen this issue? Nothing has changed and the issue is present on all Electron versions.
It’s a bug from logitech and there is not much to do than push them to fix it. https://github.com/microsoft/vscode/issues/84136#issuecomment-772319907
Seems like Logitech fixed this in their latest software update: Logitech Options 8.54.106
It's been working for me for a couple weeks since the update now in VS Code at least. https://github.com/microsoft/vscode/issues/84136#issuecomment-828675056
EDIT: Seems like this was premature, still getting issues although less regular.
That’s great news, can’t wait to try it! (Although my last update annoyingly knocked out all my settings so I hope it’s less painful this time)
It's seemed improved for me as well, but only in some apps. VS Code has been working pretty consistently, but Spotify still pretty regularly breaks, for example.
Although, now that I say that, I tested Spotify again, and it broke for only a moment, then started working again, so maybe it is fixed 🤷♂️
It still breaks for me, even after the latest update. Focusing on a separate window and scrolling a bit there does fix the issue in VS Code though.
Likewise, I'm on version 8.54.106, Windows 10 and still experiencing sideways scrolling issues. Switching from a different app makes scroll inputs work again for a split second, then it goes away.
still breaking for me too
Yes agreed. I'm using the new beta for Logitech Options+ and it's still a problem intermittently.
I've reported the issue directly with Logitech now and it's being escalated. I've mentioned the relevant GH issues. Hopefully they're able to move this forward internally.
~~I changed the Logitech Options configuration for Google Chrome from Navigate between tabs
to Horizontal scroll
, and now it works fine in VS Code. This solution is OK for me as I disliked the default Navigate between tabs
behavior 😃~~
Sorry, it only worked a bit, but no longer works. Need to scroll a bit in a Chrome window for it work again regularly...
Problem appear with :
- VS Code : 1.56.2
- Logitech Options : some previous version
Problem solved with :
- VS Code : 1.56.2
- Logitech Options : 8.54.161
Hope it helps someone.
the problem still persists on:
- VS Code: 1.59.1 (Electron 13.1.7)
- Logitech Options: 8.54.161
***** its damn annoying not being able to scroll horizontally
the problem still persists
- VS Code: 1.59.1 (Electron 13.1.7)
- Logitech Options: 8.54.161
Please stop complaining. It’s worthless. The problem is known and only Logitech can solve it. Read the comments before posting.
Please stop complaining. It’s worthless. The problem is known and only Logitech can solve it. Read the comments before posting.
I have reported the issue more then once to Logitech, until its solved, its good to let people know it is still a problem. Every now and then some claim it has been solved.
Since Logitech is unlikely to act, maybe someone more capable could implement a fix?
this is only an issue with electron apps, might I remind you, I have never had issues with horizontal scroll in photoshop or premiere pro
Just uninstall Logitech Options and it will work everywhere
@luiguild that's not a good option, because you lose out on all the customization features.
So it's an open source project, send a PR, hacktoberfest is coming :D
Just some personal experience which might be helpful.
My setup: MX Master 3 + VS Code 1.62.3 (user setup) + Chrome 95.0.4638.69.
I had a application-specific profile in logitech options for chrome which sets horizontal wheel to navigate between tabs. In this case, even if I make a application-specific profile for VS Code to set horizontal wheel to horizontal scroll, the scroll still would not work in VS Code. If the setting in the chrome profile is also set to horizontal scroll, the scroll works in VS Code.
It feels like that settings for VS Code in logitech options is (partially) overridden by the settings for Chrome. Probably has something to do with how the Logitech Options recognize apps.
Looks like it works now with Logitech Options 9.40.86
I don't even think this is related to Logitech Options. I had the same issue with the 2S and the 3 as well on Linux.
@szszoke I only have this issue on Windows when Logitec Options is installed. It a) works when Logitec Options is not installed on Windows and b) works on Linux (Ubuntu 21.10).
I've reported the issue to Logitec and they could reproduce it.
@Elias-Graf Interesting. I've tried reaching out to them for years and nothing came out of it... Keep us updated on the status please!
DanyCuba on the Linus Tech Tips forum found that horizontal scroll does work in VS Code when you run it as Administrator. I have tested it on my machine and can verify this does solve the issue.
Obviously not ideal but hopefully gives some further insight into the problem for someone with more inside knowledge.
DanyCuba on the Linus Tech Tips forum found that horizontal scroll does work in VS Code when you run it as Administrator. I have tested it on my machine and can verify this does solve the issue.
Obviously not ideal but hopefully gives some further insight into the problem for someone with more inside knowledge.
Thank you, this fixed the issue for me
@ciriousjoker As you've told me to keep you posted, here you go. This week I've received an e-mail from the support, stating that they have tested against an internal version (9.60.89, which is not released yet) and it works fine. So look forward to the release of that :).
Horizontal scrolling affects vertical scrolling. First scroll horizontally and then scroll vertically without lifting. The result is that you cannot scroll...... When can it be resolved?
@Elias-Graf have you heard from support on when it'll be released, by any chance?
@Elias-Graf they only plan to update options ?? and logi options +?, They are thinking about updating the options ??and what will they do with the logi options +? And what you say may be true since as of today the logitech options on my pc is in version 9.60.87.
Installing the latest Logi Options+ Solved the issue for me
@leocb a current version?, in my case it was the same, the same error.
hmmm, I installed log options + while vscode was open, then I tested all the cases I saw on this thread that triggered the problem, the scroll kept working fine. Now after I saw @s1davide message, I tried restarting vscode and the problem is occuring again. weird. I guess updating while vscode was open made it "detach" from logi options, which we know works properly Oh well, guess we have to keep waiting for the fix.
The problem persists, even after buying a new MX Master 3S
Some time has elapsed and Logitech released a new app called "Logi Options+". The old Logitech Options told me to update to that so I did. Sadly it seems like that app has the same issue. Can anyone confirm?
Yes, the problem still persists on Logi Options+
I have been informed that the issue should be fixed in Logitech Options (not Logi Options+) with the release of the version 9.70 (which will be soon -ish). They said that they don't know about Logi Optins+.
They have been saying it was fixed for years, ill believe it when they do it.
The 100% reliable fix for me for VSCode with the MX Master 3 on Windows 10 is to open Logitech Options while VSCode is open, and just use the sidescroll once on top of the VSCode window (while Logitech Options is open on screen). I have to do this a few times over the course of the day, but it's the only fix that works for me every single time.
It's absurd that I have to use weird tricks like this to get features working on what's supposedly a high-end productivity mouse.
The 100% reliable fix for me for VSCode with the MX Master 3 on Windows 10 is to open Logitech Options while VSCode is open, and just use the sidescroll once on top of the VSCode window (while Logitech Options is open on screen). I have to do this a few times over the course of the day, but it's the only fix that works for me every single time.
It's absurd that I have to use weird tricks like this to get features working on what's supposedly a high-end productivity mouse.
That is not a fix, do not call it a fix, its a workaround. And its not really reliable considering you have to do it so often.
Update dropped today. It works for me in VSCode.
(Only on Logitech Options, not Logi Options+)
I can confirm, fixed for my original MX Master mouse.
Hopefully it will be in Logi Options+ soon.
Hopefully it will be in Logi Options+ soon.
I'm currently in the process of inquiring about that. But I'm happy that it works at all, lol
Guys I can confirm it today I got the update (9.70.68) and now the horizontal scroll is working in the applications developed with electron and the ones I currently use, I'm glad that logitech has listened to their customers, I had even posted this issue on reddit.