Reduced the time hysteresis. Need more testing, though
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16030 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
395817e35f
commit
365a41fd5c
@ -1112,13 +1112,17 @@ BMenu::_track(int *action, long start)
|
||||
bigtime_t startTime = system_time();
|
||||
bigtime_t clickTime = 0;
|
||||
get_click_speed(&clickTime);
|
||||
|
||||
// TODO: Test and reduce the timeout if needed.
|
||||
clickTime /= 2;
|
||||
|
||||
do {
|
||||
if (!LockLooper())
|
||||
break;
|
||||
|
||||
bigtime_t snoozeAmount = 50000;
|
||||
BPoint location;
|
||||
GetMouse(&location, &buttons);
|
||||
GetMouse(&location, &buttons, true);
|
||||
|
||||
item = HitTestItems(location, B_ORIGIN);
|
||||
if (item != NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user