microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
160.51k stars 28.1k forks source link

The horizontal wheel of mouse is invalid #84136

Open luo-chuan opened 4 years ago

luo-chuan commented 4 years ago

Issue Type: Bug

mouse: logi m590 The horizontal wheel of mouse does not work in VS code.

VS Code version: Code 1.39.2 (6ab598523be7a800d7f3eb4d92d7ab9a66069390, 2019-10-15T15:35:18.241Z) OS version: Windows_NT x64 10.0.18362

Ch0ufleur commented 3 years ago

Logitech seems to have a beta version of a new Options+ software. Downloading and installing it instead of Logi Options seems to fix any horizontal scrolling bugs with a thumb wheel for now (MX master 3) https://www.logitech.com/fr-ca/software/logi-options-plus.html

Do you know if the new version can restore logi options settings backup ? Did you test it long enough with VScode ?

Hi, no I don't know if it can restore settings and profiles that were set up with the normal Logi Options. I have tested it with VSCode only a few minutes after having configured a profile for VSCode in the Logi Options+ app that I newly installed. In the profile I configured my thumb wheel to default behavior, with is horizontal scrolling. It immediately worked in VSCode. Initially I searched for a fix for the same problem with the Figma Desktop app (and other apps), but posted the solution I found here since all other threads seemed to relate to this one. The problem seems to be software related with Logi Options... Hope this helps

Ch0ufleur commented 3 years ago

It is a beta and you do have to subscribe to it first though, just be mindful of that

Ch0ufleur commented 3 years ago

Update, after restarting my PC, it works sometimes but not always, i have to open logi options+ in front of the VSCode window, then horizontal scroll on the VSCode app in the background, then minimize logi options+ for it to work... All this is so weird...

ciriousjoker commented 3 years ago

Scrollwheel is still broken in Options+. I noticed that they're injecting some sort of service into Chrome that apparently makes horizontal scrolling work (but also broke keystroke actions & Task View when Chrome is active).

julian7890 commented 2 years ago

I read somewhere that running VSCode as administrator is a work around, seems to be working for me.

OS: Windows 10 Logitech Options: 8.54.161 Device: MX Master

ACrazyConcept commented 2 years ago

Update, after restarting my PC, it works sometimes but not always, i have to open logi options+ in front of the VSCode window, then horizontal scroll on the VSCode app in the background, then minimize logi options+ for it to work... All this is so weird...

Same for me. But this is still way better than running as administrator or renaming code.exe after each vscode update.

julian7890 commented 2 years ago

I just noticed that I had smooth scrolling disabled in Point & Scroll of Logitech Options. When I enabled that and restarted my PC it seem to enable horizontal scrolling without running VS as administrator. Haven't tried Logi options+ yet.

uditrana commented 2 years ago

I bought a logitech master mouse specifically for horizontal scroll while coding and now its not working :(

Opening with admin does seem to solve the issue, but it is quite annoying. Really hoping someone on the dev team will push Logitech to take a look at this

mig8447 commented 2 years ago

MX Ergo's horizontal scroll doesn't work in Windows either except... if you run VSCode as an administrator. This is very frustrating

aajahid commented 2 years ago

This may be a really dumb question... but I was having the exact same issue with my Logitech mouse and Logitech options and stumbled across some post on another forum saying something about having Microsoft Mouse and Keyboard Center installed. (I do have a Microsoft wireless keyboard (and Logitech mouse) and as soon as I installed MS Mouse and Keyboard Center horizontal scrolling in VS Code started working immediately (without even the required reboot it wants). Wondering if anyone else having this issue also has a MS keyboard (or possibly a MS Mouse or other similar input device?) connected/paired with the computer?

@minig0d - I don't have microsoft mouse/keyboard. But I read your comment - and did install that microsoft "Mouse and Keyboard Center". And the horizontal scroll started working! I don't care how or why, but I'm happy that it works. Finally after years I can scroll in VScode!

Fred-Vatin commented 2 years ago

@minig0d - I don't have microsoft mouse/keyboard. But I read your comment - and did install that microsoft "Mouse and Keyboard Center". And the horizontal scroll started working! I don't care how or why, but I'm happy that it works. Finally after years I can scroll in VScode!

Lots of you have celebrated in the past : “Yeah it works !!!”, before realizing the miraculous solution wasn’t a permanent or a viable fix. Just confirm if the horizontal wheel is working more than a few hours. Use it repeatedly during days then post your result.

depascalis commented 2 years ago

Vote the issues up in the UserVoice for Options+. If we collaborate now we can easily vote them to the top since the top issues only have around 30 votes atm.

Here are some of the tickets that best describe the issue (not by github standards 😂) 43957566 horizontal-scroll-not-working-in-some-applications 44111256 horizontal-scroll-vscode 44102976 horizontal-scroll-doesnt-work-properly 44079516 horizontal-scroll-in-vscode

A query for similar issues if you want to vote for all of them

I believe the issue is upstream of Options+ though, but voting might get their attention. Fun ironic fact: Options+ is also Chromium based, so you can debug it yourself

tiago-eusebio-dev commented 2 years ago

I can confirm this issue still occurs. Using a Logitech MX Master 3, horizontal wheel doesn't work unless:

Version: 1.62.0 (system setup) Commit: b3318bc0524af3d74034b8bb8a64df0ccf35549a Date: 2021-11-03T15:23:01.379Z Electron: 13.5.1 Chrome: 91.0.4472.164 Node.js: 14.16.0 V8: 9.1.269.39-electron.0 OS: Windows_NT x64 10.0.19042

Logitech Options: 9.40.86

mig8447 commented 2 years ago

Another workaround I found is hitting the shift key while vertical scrolling does the trick

dezimbo commented 2 years ago

Microsoft Bluetooth Mobile Mouse 3600 has the same problem. Horizontal scrolling works in VSCode only when the VSCode window is inactive. It worked great before. Mouse Keyboard Center 14.41.

mcmmcm commented 2 years ago

I am using Logitech MX Master 3. The way to reproduce the problem is

  1. Use horizontal wheel in VS Code
  2. Switch to another application e.g. Chrome, use horizontal wheel there
  3. Switch back to VS Code, make sure VS Code is the active window. Use horizontal wheel. It scrolls a little bit but not anymore.

To workaround it,

  1. Switch to anthoer application e.g. Chrome, use horizontal wheel there
  2. Hover your mouse over VS Code and use the horizontal wheel. Note, do not focus/click on VS Code so VS Code stays inactive while scrolling
  3. Now horizontal scroll works fine on VS Code

Edit 1. update the steps in workaround

BetTD commented 2 years ago

I am using Logitech MX Master 3. The way to reproduce the problem is

  1. Use horizontal wheel in VS Code
  2. Switch to another application e.g. Chrome, use horizontal wheel there
  3. Switch back to VS Code, make sure VS Code is the active window. Use horizontal wheel. It scrolls a little bit but not anymore.

To workaround it,

  1. Switch to anthoer application e.g. Chrome.
  2. Hover your mouse over VS Code and use the horizontal wheel. Note, do not focus/click on VS Code so VS Code stays inactive.
  3. Now horizontal scroll works fine on VS Code

@mcmwong I've tried your workaround with no success. Same mouse, latest Logitech Options version and Visual Studio Code build (just installed the update a minute ago). The horizontal scroll wheel does nothing regardless of the window state (active or inactive).

tiago-eusebio-dev commented 2 years ago

Another workaround I found is hitting the shift key while vertical scrolling does the trick

This is really not a workaround as it is the behavior with any other mouse. The problem here is with dedicated horizontal wheels.

mcmmcm commented 2 years ago

@mcmwong I've tried your workaround with no success. Same mouse, latest Logitech Options version and Visual Studio Code build (just installed the update a minute ago). The horizontal scroll wheel does nothing regardless of the window state (active or inactive).

This may sound obvious but just want to confirm, was your window narrow enough and was the horizontal scroll bar visible when you try the workaround? I have updated the instruction. Hopefully it's clearer this time.

Here's mine VS code version: 1.62.2 Logitech Options: 019.001.00015

BetTD commented 2 years ago

@mcmwong I've tried your workaround with no success. Same mouse, latest Logitech Options version and Visual Studio Code build (just installed the update a minute ago). The horizontal scroll wheel does nothing regardless of the window state (active or inactive).

This may sound obvious but just want to confirm, was your window narrow enough and was the horizontal scroll bar visible when you try the workaround? I have updated the instruction. Hopefully it's clearer this time.

Here's mine VS code version: 1.62.2 Logitech Options: 019.001.00015

Yeah, I made sure I was editing a file wider than my VSCode window, and the horizontal scrollbar was definitely present.

quasi635 commented 2 years ago

I uninstalled Logitech Options and was able to horizontal scroll in VSCode using my MX Master 3 again. Must be a bug with the Logitech software.

davidmnoriega commented 2 years ago

I'm running logitech options ver 9.40.86 currently, and I added an app profile for vscode and got horizontal scroll working

rgvillain commented 2 years ago

For people who use the Remote Containers extension, running VSC as an administrator can cause permission issues after you run the 'Open Folder in Container' command.

kurdtpage commented 2 years ago

None of the suggestions above worked for me, but I have a fix. My setup: Version: 1.64.2 (user setup) Commit: f80445acd5a3dadef24aa209168452a3d97cc326 Date: 2022-02-09T22:02:28.252Z Electron: 13.5.2 Chromium: 91.0.4472.164 Node.js: 14.16.0 V8: 9.1.269.39-electron.0 OS: Windows_NT x64 10.0.19041

Chrome Version 98.0.4758.82 (Official Build) (64-bit)

Mouse is Logitech MX Master 3 (firmware 19.1.15)

What I did was to install the new Logitech Options+ beta (version 0.80.3597) and then create TWO software profiles, one for Chrome and another for VS Code. I had to update BOTH thumb wheel options from the default "Navigate between tabs" to "Horizontal scroll" and that fixed the problem. I can now horizontally scroll using the dedicated thumb wheel, without resorting to running VS code in administrator mode

SindreHa commented 2 years ago

None of the suggestions above worked for me, but I have a fix. My setup: Version: 1.64.2 (user setup) Commit: f80445a Date: 2022-02-09T22:02:28.252Z Electron: 13.5.2 Chromium: 91.0.4472.164 Node.js: 14.16.0 V8: 9.1.269.39-electron.0 OS: Windows_NT x64 10.0.19041

Chrome Version 98.0.4758.82 (Official Build) (64-bit)

Mouse is Logitech MX Master 3 (firmware 19.1.15)

What I did was to install the new Logitech Options+ beta (version 0.80.3597) and then create TWO software profiles, one for Chrome and another for VS Code. I had to update BOTH thumb wheel options from the default "Navigate between tabs" to "Horizontal scroll" and that fixed the problem. I can now horizontally scroll using the dedicated thumb wheel, without resorting to running VS code in administrator mode

This worked for me too, thanks!

depascalis commented 2 years ago

This issue should be closed as it's not a vscode issue, it is crappy drivers or software from Logitech. Also, the suggestion from #issuecomment-1038488566 solves it for vscode. I still have the same problem in Notepad++ though

edit: issue still persists

skille commented 2 years ago

None of the suggestions above worked for me, but I have a fix. My setup: Version: 1.64.2 (user setup) Commit: f80445a Date: 2022-02-09T22:02:28.252Z Electron: 13.5.2 Chromium: 91.0.4472.164 Node.js: 14.16.0 V8: 9.1.269.39-electron.0 OS: Windows_NT x64 10.0.19041

Chrome Version 98.0.4758.82 (Official Build) (64-bit)

Mouse is Logitech MX Master 3 (firmware 19.1.15)

What I did was to install the new Logitech Options+ beta (version 0.80.3597) and then create TWO software profiles, one for Chrome and another for VS Code. I had to update BOTH thumb wheel options from the default "Navigate between tabs" to "Horizontal scroll" and that fixed the problem. I can now horizontally scroll using the dedicated thumb wheel, without resorting to running VS code in administrator mode

Best suggestion / Solution yet! Create profile for both VS Code & Chrome, configure them both for horizontal scroll and it works!

Alex-CS commented 2 years ago

Creating profiles for VS Code and Chrome as mentioned in a couple places (874248365, 991227457, 1038488566, & others) worked for me, plus it's also the most intuitive user-side fix, so hit those folks with some 👍s


My Setup:


Sidenote: I don't personally use Chrome (literally just installed it just to try that solution), so after I got that solution to work, I tried something else out on a hunch.

  1. Removed both the new app profiles in Options+
  2. Exited VS Code (I think this matters because deleting the profile didn't actually make it stop working for the running app)
  3. Reopened VS Code & confirmed that the scrolling issue was back (as expected)
  4. Uninstalled Chrome (not sure if you need to do this, but left it here because I did it)
  5. Restarted my PC
  6. Opened VS Code
  7. With VS Code in focus, confirmed the scrolling issue was still present
  8. Switched to a different window (it seems like any other window works as long as you can still see at least part of the VS Code editor pane. I tested it with an Options+ window, a Task Manager one, File Explorer, Firefox, and even just another VS Code window. I also tried various combinations of windows overlapping w/ VS Code: no overlap, partial overlap, fullscreen VS Code. They all work, so I think all that matters is that it's some other window)
  9. With the other window still in focus (inspired by issuecomment-874253248), moved the cursor over the background VS Code editor pane & scrolled the horizontal wheel (if it doesn't scroll, wait a little bit. Most times I didn't need to wait any extra, but there were a few times I couldn't scroll the background VS Code window until it'd been open for awhile, never more than 10 seconds) (Also, this may not work on Windows 10. I vaguely recall being unable to scroll a window unless it was in focus at some point before I upgraded to Windows 11, but I'm not sure if the feature was specifically introduced in Windows 11, or if Windows 10 has it too)
  10. Clicked the VS Code window, bringing it back into focus
  11. (!) Horizontal scrolling worked on the in-focus VS Code window (and it seems to stay working until the next time I quit VS Code)

I've been able to reliably repeat steps 6-11 to get the side scroll wheel working multiple times. Again, I did this after trying the profiles, so it's possible that this only works because of something somehow left over from the profiles even though I restarted and this behavior is different than how the profile worked (that was immediate as opposed only working after switching windows). Even if that's the case, this was weird enough that I figured it's at least worth documenting and even if it doesn't work for everyone, hopefully it's at least a little more information that can help someone! I don't mind having

TLDR: If you don't use Chrome or for some reason don't want to create an app-specific profile for VS Code, try steps 6-11 above and see if they work for you

filetvignon commented 2 years ago

None of the suggestions above worked for me, but I have a fix. My setup: Version: 1.64.2 (user setup) Commit: f80445a Date: 2022-02-09T22:02:28.252Z Electron: 13.5.2 Chromium: 91.0.4472.164 Node.js: 14.16.0 V8: 9.1.269.39-electron.0 OS: Windows_NT x64 10.0.19041

Chrome Version 98.0.4758.82 (Official Build) (64-bit)

Mouse is Logitech MX Master 3 (firmware 19.1.15)

What I did was to install the new Logitech Options+ beta (version 0.80.3597) and then create TWO software profiles, one for Chrome and another for VS Code. I had to update BOTH thumb wheel options from the default "Navigate between tabs" to "Horizontal scroll" and that fixed the problem. I can now horizontally scroll using the dedicated thumb wheel, without resorting to running VS code in administrator mode

This didn't work for me =( I have no idea why. Only difference I guess is that I'm using version 1.0.5155 of the Logitech Options+ software. Also I use different profiles within chrome, don't know if that could be a factor. So right now the only thing that works for me is either running vscode in administrator mode or resorting to using the scroll in another window and then going back to vscode (this is annoying because it stops working after awhile).

ghost commented 2 years ago

None of the suggestions above worked for me, but I have a fix. My setup: Version: 1.64.2 (user setup) Commit: f80445a Date: 2022-02-09T22:02:28.252Z Electron: 13.5.2 Chromium: 91.0.4472.164 Node.js: 14.16.0 V8: 9.1.269.39-electron.0 OS: Windows_NT x64 10.0.19041 Chrome Version 98.0.4758.82 (Official Build) (64-bit) Mouse is Logitech MX Master 3 (firmware 19.1.15) What I did was to install the new Logitech Options+ beta (version 0.80.3597) and then create TWO software profiles, one for Chrome and another for VS Code. I had to update BOTH thumb wheel options from the default "Navigate between tabs" to "Horizontal scroll" and that fixed the problem. I can now horizontally scroll using the dedicated thumb wheel, without resorting to running VS code in administrator mode

This didn't work for me =( I have no idea why. Only difference I guess is that I'm using version 1.0.5155 of the Logitech Options+ software. Also I use different profiles within chrome, don't know if that could be a factor. So right now the only thing that works for me is either running vscode in administrator mode or resorting to using the scroll in another window and then going back to vscode (this is annoying because it stops working after awhile).

In my case it is exactly the same. Even when having said profiles it doesn't work and the workaround is to use the scroll in another window (Chrome, or Edge, for example) and then going back to VSCode.

PavelJacobo commented 1 year ago

Still I'm having same issue with horizontal scrolling, Windows Vscode, Wireless Mouse MX Master

junhan-z commented 1 year ago

+1, STILL can't scroll horizontally.

ehellman commented 1 year ago

MX Master 3S, can't sidescroll either..

TamirCode commented 1 year ago

None of the suggestions above worked for me, but I have a fix. My setup: Version: 1.64.2 (user setup) Commit: f80445a Date: 2022-02-09T22:02:28.252Z Electron: 13.5.2 Chromium: 91.0.4472.164 Node.js: 14.16.0 V8: 9.1.269.39-electron.0 OS: Windows_NT x64 10.0.19041

Chrome Version 98.0.4758.82 (Official Build) (64-bit)

Mouse is Logitech MX Master 3 (firmware 19.1.15)

What I did was to install the new Logitech Options+ beta (version 0.80.3597) and then create TWO software profiles, one for Chrome and another for VS Code. I had to update BOTH thumb wheel options from the default "Navigate between tabs" to "Horizontal scroll" and that fixed the problem. I can now horizontally scroll using the dedicated thumb wheel, without resorting to running VS code in administrator mode

this is working only 70% of the time. Sometimes i have to arbitrarily open the logi options+ app to get it working, and sometimes it doesnt even work when i open the app, and only 5 minutes later it starts working again

TamirCode commented 1 year ago

Please fix this nothing is working, i tried all of the comments

notepad successfully fixed something on their side even though it's probably logitech's problem https://github.com/notepad-plus-plus/notepad-plus-plus/issues/10490

PLS