UI: fix menus getting closed too quick when moving mouse not exactly towards

them, noticeable for the vertex groups or material slot utility menus.
This commit is contained in:
2011-05-19 11:05:34 +00:00
parent fbdd33f62d
commit d77b9af609

View File

@@ -5534,10 +5534,6 @@ static int ui_mouse_motion_towards_check(uiBlock *block, uiPopupBlockHandle *men
int closer;
if(!menu->dotowards) return 0;
if((block->direction & UI_TOP) || (block->direction & UI_DOWN)) {
menu->dotowards= 0;
return menu->dotowards;
}
/* verify that we are moving towards one of the edges of the
* menu block, in other words, in the triangle formed by the