There was a reason for this after all: Sometimes hovering from the

submenu to the parent didn't trigger tracking from it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23232 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2008-01-03 10:43:45 +00:00
parent aad0d344f0
commit c129260a24

View File

@ -1409,8 +1409,11 @@ BMenu::_Track(int *action, long start)
fState = MENU_STATE_CLOSED;
}
} else if (item == NULL) {
if (_OverSuper(screenLocation))
if (_OverSuper(screenLocation)) {
fState = MENU_STATE_TRACKING;
UnlockLooper();
break;
}
else {
if (!_OverSubmenu(fSelected, screenLocation)
&& system_time() > closeTime + kHysteresis