UI: auto open adjacent pulldown and popover buttons.
This commit is contained in:
parent
fc32bd729c
commit
97c7db168d
Notes:
blender-bot
2023-04-04 07:45:26 +02:00
Referenced by issue #66316, "Open on Mouse Over" does not work in all menus
|
@ -7628,7 +7628,7 @@ static void button_activate_state(bContext *C, uiBut *but, uiHandleButtonState s
|
|||
button_tooltip_timer_reset(C, but);
|
||||
|
||||
/* automatic open pulldown block timer */
|
||||
if (ELEM(but->type, UI_BTYPE_BLOCK, UI_BTYPE_PULLDOWN)) {
|
||||
if (ELEM(but->type, UI_BTYPE_BLOCK, UI_BTYPE_PULLDOWN, UI_BTYPE_POPOVER)) {
|
||||
if (data->used_mouse && !data->autoopentimer) {
|
||||
int time;
|
||||
|
||||
|
@ -10004,7 +10004,7 @@ static int ui_handler_region_menu(bContext *C, const wmEvent *event, void *UNUSE
|
|||
(ELEM(but->type, UI_BTYPE_PULLDOWN, UI_BTYPE_POPOVER)) &&
|
||||
(but_other = ui_but_find_mouse_over(ar, event)) &&
|
||||
(but != but_other) &&
|
||||
(but->type == but_other->type))
|
||||
(ELEM(but_other->type, UI_BTYPE_PULLDOWN, UI_BTYPE_POPOVER)))
|
||||
{
|
||||
/* if mouse moves to a different root-level menu button,
|
||||
* open it to replace the current menu */
|
||||
|
|
Loading…
Reference in New Issue