Fix T41426: floating menus - scroll issues.
Do not reset active but if cursor is not over it when getting mousewheel events.
This commit is contained in:
parent
71ce415f4a
commit
de12cd706f
Notes:
blender-bot
2023-02-14 11:24:03 +01:00
Referenced by issue #41475, Mouse Wheel does not scroll drop down lists Referenced by issue #41426, floating menus - scroll issues
|
@ -7951,7 +7951,7 @@ static int ui_handle_menu_button(bContext *C, const wmEvent *event, uiPopupBlock
|
|||
else if (!ui_mouse_inside_region(but->active->region, event->x, event->y)) {
|
||||
/* pass, needed to click-exit outside of non-flaoting menus */
|
||||
}
|
||||
else if ((event->type != MOUSEMOVE) && ISMOUSE(event->type)) {
|
||||
else if ((!ELEM(event->type, MOUSEMOVE, WHEELUPMOUSE, WHEELDOWNMOUSE, MOUSEPAN)) && ISMOUSE(event->type)) {
|
||||
if (!ui_mouse_inside_button(but->active->region, but, event->x, event->y)) {
|
||||
but = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue