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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user