vscode: Middle mouse button scrolling not working
- VSCode Version: 1.47.3
- OS Version: Windows 10
Steps to Reproduce:
- Click with the scroll wheel in the code editor
- Drag the mouse
Expected outcome: window scrolls What happens instead: some kind of unnecessary highlighting
Does this issue occur when all extensions are disabled?: Yes
If you notice some familiarity with this issue, is because there is a neglected issue opened 4(FOUR) years ago without any attempt at fixing. And before stamping feature request on this, it is a BUG.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 80
- Comments: 21 (3 by maintainers)
@lszomoru @vscode-triage-bot here’s a screen recording, in case anyone is genuinely confused
It is a bug not a feature request.
/nogifforsomethingcommonsense
Here’s an autohotkey workaround: https://github.com/qooqu/vs-code-mbutton-scroll-ahk
With autoscroll, you can click (not hold) middle button and then drag. So it (at least this part) won’t be conflicted with column select.
Of course, we still should have (and probably will get) options if it’s ever going to be added.
Imagine there is a software which decides to do the click on right button and right click on left button of the mouse. It is not a “bug”, it is a decision of the software makers. What would people do? Open bug reports. Mouse does not behave as expected.
A standard mouse has left button for click, right button for right click, and a scroll wheel for scrolling. The scroll wheel when pressed is the middle button. Middle button’s standard use is auto scrolling.
We can argue that it is not a bug, it is a decision of developers to hijack the middle button for something else, but in that case the only sensible thing to do is to provide a checkbox to let it work as expected. The middle button was already doing something (auto scroll) before VS Code just hijacked it without notifying users about it.
/gifPlease
@hediet now that you closed this, the issue from 2016 will get the proper attention? So that is why this was not fixed until now, too many open tickets 😄
Agreed, the point really isn’t weather it’s a bug or not. I’m only pointing out that middle mouse scroll is something that isn’t always implemented. It’s a feature that originated with web browsers, and many other applications have followed suit (it’s not native to the Win32 API and your app doesn’t automatically have the functionality). Many apps don’t scroll on middle click:
Although, to your point there are also apps where right click does nothing. Evernote has many UI elements where right click is not implemented which decreases the usability of the application. Similarly with middle click, you don’t really get right click functionality for free unless you’re using some sort of native control. You have to implement it as a feature.
My main point is that the implementer should consider making it an option, since column select is a useful feature which I use all the time for multi-edit.
We have more than 20 upvotes on this issue now. Just like with this issue.
What is the further process of this improvement request? Is the “20 upvotes limit” just a mirage?