Skip to content

Middle mouse button scrolling #6302

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

Open
harold-b opened this issue May 12, 2016 · 123 comments · May be fixed by #245882
Open

Middle mouse button scrolling #6302

harold-b opened this issue May 12, 2016 · 123 comments · May be fixed by #245882
Labels
editor-scrollbar Editor scrolling issues feature-request Request for new features or functionality windows VS Code on Windows issues
Milestone

Comments

@harold-b
Copy link

  • VSCode Version: 1.10

I searched the issues but did not find any such post, so apologies if there is an existing thread that I missed.

I'd like to know if there is any middle mouse click scrolling, planned? That is, clicking the scroll wheel to toggle drag scrolling. It's a useful feature to have when navigating very long files.

And if it isn't, is there any API that would allow this to be enabled via an extension?

Thanks

@Tyriar
Copy link
Member

Tyriar commented May 12, 2016

@harold-b This is an OS-level Windows feature, it should work on Windows now. Also middle click has special behavior on Linux by acting as a secondary clipboard so it definitely wouldn't work there.

@Tyriar Tyriar closed this as completed May 12, 2016
@harold-b
Copy link
Author

harold-b commented May 12, 2016

it should work on Windows now

Which version is it available on? I can't seem to trigger it on 1.10 public or insiders.

@Tyriar
Copy link
Member

Tyriar commented May 12, 2016

@harold-b do you have the same issues in Chrome and/or Atom? I wouldn't expect us to need to do anything on our side for it to work.

@Tyriar Tyriar reopened this May 12, 2016
@Tyriar Tyriar added the info-needed Issue requires more information from poster label May 12, 2016
@Tyriar Tyriar self-assigned this May 12, 2016
@harold-b
Copy link
Author

I'm on Chrome right now and it's always worked. I've never used atom (other than electron via VSCode), but I'll grab it and verify.

@harold-b
Copy link
Author

harold-b commented May 12, 2016

I tried Atom, it didn't work either. I checked the settings page to see if there was an option I needed to enable, I didn't find anything, but scrolling worked on the settings page. So I decided to check a markdown file in preview mode on VS Code, and it worked there too. However, not in text documents on either app.

@Tyriar
Copy link
Member

Tyriar commented May 12, 2016

@harold-b k, I'll relabel and assign, thanks for bearing with me 😃

@Tyriar Tyriar assigned alexdima and unassigned Tyriar May 12, 2016
@Tyriar Tyriar added bug Issue identified by VS Code Team member as probable bug windows VS Code on Windows issues and removed info-needed Issue requires more information from poster labels May 12, 2016
@harold-b
Copy link
Author

Not at all, my pleasure to help. Thanks for your attention 👍

@csicky
Copy link

csicky commented Dec 30, 2016

Hi, any news on this?

THX

@jeepshop
Copy link

Bump!

I use this feature constantly within Visual Studio, and it is greatly missed.

@alexdima alexdima added feature-request Request for new features or functionality and removed bug Issue identified by VS Code Team member as probable bug labels Jan 21, 2017
@alexdima alexdima added this to the Backlog milestone Jan 21, 2017
@alexdima alexdima removed their assignment Jan 21, 2017
@csicky
Copy link

csicky commented Jun 21, 2017

I keep seeing that you guys are working on something each month when there is a new version. How come you keep forgetting about this one? There has been a year already. If you say it is something OS level it means it's a bug. It doesn't matter, bug, feature, just please make it work.

image

@Tyriar
Copy link
Member

Tyriar commented Jun 21, 2017

@csicky there are 4000 open issues currently and there are ~2000 new ones created every month. Everything needs to be prioritized.

@csicky
Copy link

csicky commented Jun 21, 2017

I understand that, but if there are 2000 new ones every month it means that in a year there were many issues prioritized before this one.

@alexdima
Copy link
Member

@csicky The advantage of us being Open Source is that if you'd like to have something implemented, you can do it and submit a PR. Issues and discussions are very valuable, but IMHO a PR will have a far greater impact! ❤️

@csicky
Copy link

csicky commented Jun 22, 2017

@alexandrudima OK then, until I will find time to make it myself I will have to live with it every day. OS is not always an advantage. But if you say it's an advantage, why are you doing it actually? Not to share it with the users? Here is a request from some users.

@Tyriar
Copy link
Member

Tyriar commented Jun 22, 2017

@csicky I don't understand the point you're trying to make here? There are many good and bad things with OSS, but from this conversation I've gathered:

Advantages:

  • Ability to talk directly with developers
  • Access to source code
  • Ability to contribute
  • More unfiltered feedback from users

Disadvantages:

  • ?

The fact that VS Code is OSS doesn't change the fact that we're busy and need to manage and prioritize the vast amount of incoming issues. You would probably be worse off if VS Code was closed as you wouldn't have the ability to contribute is what @alexandrudima was trying to say.

@lukakostic
Copy link

Middle click scroll when? 7 years guys..

@Galacticai
Copy link

Middle click scroll when? 7 years guys..

Waiting for the 10 years anniversary or even better, never

@dfvr1994
Copy link

dfvr1994 commented Mar 4, 2024

2024, still waiting...

1 similar comment
@matiasmacarioo
Copy link

2024, still waiting...

@NatoBoram
Copy link

Ah, shame. My mousewheel got dirty and I can't fix it, so it counter-scrolls half the time. I would really, really, really need autoscrolling to be able to navigate my code while the next mouse is shipping.

Can we tag this as accessibility Keyboard, mouse, ARIA, vision, screen readers (non-specific) issues ?

@thetechdog
Copy link

I need this...

@Sceptrum
Copy link

From time to time, I press the middle button to scroll, like I haven't tried it already a thousand times. That's how I miss this feature.

@csicky
Copy link

csicky commented Apr 23, 2024

https://github.com/microsoft/vscode/issues?page=2&q=is%3Aopen+sort%3Acreated-asc

this is at number 50 of never to be completed issues

@LeviGary
Copy link

+1
i use it in browsers all the time so to not have it is incredibly weird

@aloguzzo
Copy link

Can we tag this as accessibility Keyboard, mouse, ARIA, vision, screen readers (non-specific) issues ?

+1

@matiasmacarioo
Copy link

matiasmacarioo commented Jun 22, 2024 via email

@kuoliangkwong
Copy link

+1

@ibrahimkettaneh
Copy link

Ah, shame. My mousewheel got dirty and I can't fix it, so it counter-scrolls half the time. I would really, really, really need autoscrolling to be able to navigate my code while the next mouse is shipping.

Can we tag this as accessibility Keyboard, mouse, ARIA, vision, screen readers (non-specific) issues ?

I woudl like to boost this.

@mapleroyal
Copy link

How tf are people horizontal scrolling? Is everyone actually moving their mouse all the way to the tiny scrollbar at the bottom of the screen and dragging it left to right like it's 1990?

@dimateos
Copy link

dimateos commented Aug 9, 2024

  • Mainly Shift + Scroll ?
  • Also but depending on the mouse model:
    • Mouse wheel side clicks
    • Extra horizontal mouse wheel

@Glandos
Copy link

Glandos commented Aug 9, 2024

How tf are people horizontal scrolling? Is everyone actually moving their mouse all the way to the tiny scrollbar at the bottom of the screen and dragging it left to right like it's 1990?

Another workaround: use ALT-z to temporarily enable word wrapping.

@csicky
Copy link

csicky commented Aug 9, 2024

I see label "feature-request" to this issue but it is actually a bug, not a feature request. I just scrolled up using middle click to read the label correctly.

Anyway, I found a solution because it was very frustrating. Using X-Mouse driver I could intercept middle-click and this program has its own middle click scroll which we can use.

https://www.highrez.co.uk/downloads/XMouseButtonControl.htm

image

No point in waiting another 2(two) years for this to be fixed.

Oh I said another two years... in 2018 :D
This is the best GitHub issue ever, would be a shame to close it now, let's wait for 2026!!!
In 2026 if all goes well we can submit this here

As for the workaround, it does work, the scroll cursor is not the prettiest, but it's ok
image

@csicky
Copy link

csicky commented Aug 9, 2024

https://github.com/microsoft/vscode/issues?page=2&q=is%3Aopen+sort%3Acreated-asc

this is at number 50 of never to be completed issues

Now at number 24! We can win this!

@NatoBoram
Copy link

I use it in browsers all the time so to not have it is incredibly weird

Particularly since Firefox supports it on Linux. So much for "This is an OS-level Windows feature" and "middle click has special behaviour on Linux so it definitely wouldn't work there".

:/

@UziTech
Copy link

UziTech commented Aug 12, 2024

I'm not sure if this is the right direction but I have got a working prototype at https://github.com/UziTech/vscode/tree/middle-scroll/src/vs/editor/contrib/middleScroll/browser

The logic is pulled from https://github.com/UziTech/atom-scroll-editor-on-middle-click updated with vscode APIs

vscode_middle_scroll

@JaneSmith
Copy link

As a Linux user, I very much want this feature. I use it literally every day in Firefox for web browsing. Feels horrible to navigate through long code files in VS Code without it.

@nordshadow
Copy link

nordshadow commented Oct 7, 2024

I'm not sure if this is the right direction but I have got a working prototype at https://github.com/UziTech/vscode/tree/middle-scroll/src/vs/editor/contrib/middleScroll/browser

The logic is pulled from https://github.com/UziTech/atom-scroll-editor-on-middle-click updated with vscode APIs

Man, can you make it as extension, please?

@UziTech
Copy link

UziTech commented Oct 7, 2024

Man, can you make it as extension, please?

I don't believe this can be an extension since the extension APIs are so limited.

That was one thing that was so nice about Atom. An extension could do anything so it was much easier for the community to fix things like this. We didn't have to wait 10 years for the devs to prioritize it.

@Korrd
Copy link

Korrd commented Oct 21, 2024

This is the kind of thing you interview for working at microsoft, then join the VS team, fix, ensure your PR gets merged and then quit.

@FatihPehlevan
Copy link

I see label "feature-request" to this issue but it is actually a bug, not a feature request. I just scrolled up using middle click to read the label correctly.
Anyway, I found a solution because it was very frustrating. Using X-Mouse driver I could intercept middle-click and this program has its own middle click scroll which we can use.
https://www.highrez.co.uk/downloads/XMouseButtonControl.htm
image
No point in waiting another 2(two) years for this to be fixed.

Oh I said another two years... in 2018 :D This is the best GitHub issue ever, would be a shame to close it now, let's wait for 2026!!! In 2026 if all goes well we can submit this here

As for the workaround, it does work, the scroll cursor is not the prettiest, but it's ok image

Omg thank you so much! I had no idea X-Mouse had that feature. Works perfectly.

@Rasit-Vatan
Copy link

I'm not sure if this is the right direction but I have got a working prototype at https://github.com/UziTech/vscode/tree/middle-scroll/src/vs/editor/contrib/middleScroll/browser

The logic is pulled from https://github.com/UziTech/atom-scroll-editor-on-middle-click updated with vscode APIs

vscode_middle_scroll

They can just merge this but noooo we shoulkd wait for another 8 years

@UziTech UziTech linked a pull request Apr 7, 2025 that will close this issue
@UziTech
Copy link

UziTech commented Apr 7, 2025

I created a PR for this #245882 🤞

@hediet hediet modified the milestones: Backlog, May 2025 Apr 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editor-scrollbar Editor scrolling issues feature-request Request for new features or functionality windows VS Code on Windows issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.