Skip to content

Utilize Mouse Wheel for scrolling in ToolStripDropDownMenu #13302

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
toehead2001 opened this issue Apr 14, 2025 · 3 comments · May be fixed by #13303
Open

Utilize Mouse Wheel for scrolling in ToolStripDropDownMenu #13302

toehead2001 opened this issue Apr 14, 2025 · 3 comments · May be fixed by #13303

Comments

@toehead2001
Copy link
Contributor

toehead2001 commented Apr 14, 2025

.NET version

9.0

Did it work in .NET Framework?

No

Did it work in any of the earlier releases of .NET Core or .NET 5+?

No

Issue description

The mouse wheel can't be used to scroll these menus when they're overflowed.
You have to click the arrow buttons at the Top/Bottom. 🤮

To be clear, I'm talking about overflowed ToolStripDropDownMenu like this:
Image

In Paint.NET, these menus can get overflowed easily if a user installs a lot of plugins.

Image

cc: @rickbrew

Steps to reproduce

Add many ToolStripMenuItem to a DropDown.
For testing, I created a bunch of Menu items like this.

ToolStripMenuItem[] items = Enumerable
    .Range(0, 100)
    .Select(x => new ToolStripMenuItem(x.ToString()))
    .ToArray();

ToolStripMenuItem testMenu = new ToolStripMenuItem("Test");
testMenu.DropDownItems.AddRange(items);

MenuStrip menuStrip = new MenuStrip();
menuStrip.Items.AddRange(testMenu);

Controls.Add(menuStrip);
@toehead2001 toehead2001 added the untriaged The team needs to look at this issue in the next triage label Apr 14, 2025
@merriemcgaw
Copy link
Member

Thanks for the issue and the PR @toehead2001 ! We'll take a look.

@merriemcgaw merriemcgaw added this to the 10.0 Preview4 milestone Apr 14, 2025
@merriemcgaw merriemcgaw removed the untriaged The team needs to look at this issue in the next triage label Apr 15, 2025
@merriemcgaw
Copy link
Member

Thanks @toehead2001 for the PR. @JeremyKuhne will take point on reviewing your PR.

@rickbrew
Copy link

Several years ago this was something that a surprisingly large number of folks were asking for in Paint.NET. The usability improvement was much more than I was expecting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants