Don't set releasedOnce unless we actually detect an appropriate change in mouse button states. Otherwise we could mistakenly invoke menu items when not desired. Fixes the other part of #3267.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36453 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1628,8 +1628,6 @@ BMenu::_Track(int* action, long start)
|
|||||||
} else if (item != NULL) {
|
} else if (item != NULL) {
|
||||||
_UpdateStateOpenSelect(item, location, navAreaRectAbove,
|
_UpdateStateOpenSelect(item, location, navAreaRectAbove,
|
||||||
navAreaRectBelow, selectedTime, navigationAreaTime);
|
navAreaRectBelow, selectedTime, navigationAreaTime);
|
||||||
if (!releasedOnce)
|
|
||||||
releasedOnce = true;
|
|
||||||
} else if (_OverSuper(screenLocation)) {
|
} else if (_OverSuper(screenLocation)) {
|
||||||
fState = MENU_STATE_TRACKING;
|
fState = MENU_STATE_TRACKING;
|
||||||
UnlockLooper();
|
UnlockLooper();
|
||||||
|
|||||||
Reference in New Issue
Block a user