Skip to content
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

Holding and releasing mouse on menu item should open it #245

Closed
MrSapps opened this issue Jun 17, 2015 · 2 comments
Closed

Holding and releasing mouse on menu item should open it #245

MrSapps opened this issue Jun 17, 2015 · 2 comments

Comments

@MrSapps
Copy link

MrSapps commented Jun 17, 2015

Enhancement request for menu behavior.

When you click and hold down the mouse on a top level menu it opens. Then if you scroll down on a newly opened submenu item and release the mouse button nothing happens. It would be nice if this opened the menu as it does in win32 apps.

@ocornut
Copy link
Owner

ocornut commented Jul 6, 2015

Short update, will do this ( I knew about this when I made the menu release, c.f. #126 (comment) )

It's a bit of an odd inconsistency compared to pretty much everything in the system, so not just a simple one-line change but probably simple enough. Will do! The menu is "active" while mouse is being held and menu item would have to take account of that and allow to be activated when mouse is released on a menu item while a menu in the item hierarchy is active. It probably won't work with Button() or the other widgets that are rarely used in menus.

@ocornut
Copy link
Owner

ocornut commented Jul 6, 2015

Easier than I thought. Hopefully didn't break anything in the process.

@ocornut ocornut closed this as completed Jul 6, 2015
ocornut added a commit that referenced this issue Aug 7, 2016
…re standard (#126, #245, #323)

Apparently menu items started with OnClick (vs OnClickHoldRelease) when
doing #126. Hope to not break anything.
Also allows using xxx_DontClosePopup flags.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants