Fix recently added drag events closing menus
This commit is contained in:
parent
8f49299134
commit
009c38df53
|
@ -3763,7 +3763,7 @@ static int ui_do_but_BUT(
|
|||
button_activate_state(C, but, BUTTON_STATE_WAIT_RELEASE);
|
||||
return WM_UI_HANDLER_BREAK;
|
||||
}
|
||||
else if (event->type == LEFTMOUSE && but->block->handle) {
|
||||
else if (event->type == LEFTMOUSE && event->val == KM_RELEASE && but->block->handle) {
|
||||
/* regular buttons will be 'UI_SELECT', menu items 'UI_ACTIVE' */
|
||||
if (!(but->flag & (UI_SELECT | UI_ACTIVE)))
|
||||
data->cancel = true;
|
||||
|
|
Loading…
Reference in New Issue