Now, menu reacts on first mouse release after having disabled sticky mode on MouseDown.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19350 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Waldemar Kornewald
2006-11-21 17:14:44 +00:00
parent b26e9fb499
commit 0512e98939
+3 -2
View File
@@ -1335,9 +1335,10 @@ BMenu::_track(int *action, bigtime_t trackTime, long start)
if (locked)
UnlockLooper();
if (buttons != 0 && IsStickyMode())
if (buttons != 0 && IsStickyMode()) {
SetStickyMode(false);
else if (buttons == 0 && !IsStickyMode()) {
trackTime = 0;
} else if (buttons == 0 && !IsStickyMode()) {
if (system_time() < trackTime + 1000000
|| (fExtraRect != NULL && fExtraRect->Contains(location)))
SetStickyMode(true);