mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 13:20:38 +00:00
[NSMenuView mouseDown:] Generate periodic events every 0.01 seconds
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16486 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5de602dfb4
commit
899ba50b1f
2 changed files with 8 additions and 3 deletions
|
@ -1317,7 +1317,7 @@ _addLeftBorderOffsetToRect(NSRect aRect)
|
|||
originalTopLeft.y += originalFrame.size.height;
|
||||
}
|
||||
|
||||
[NSEvent startPeriodicEventsAfterDelay: 0.1 withPeriod: 0.05];
|
||||
[NSEvent startPeriodicEventsAfterDelay: 0.1 withPeriod: 0.01];
|
||||
[self trackWithEvent: theEvent];
|
||||
[NSEvent stopPeriodicEvents];
|
||||
|
||||
|
@ -1532,7 +1532,7 @@ _addLeftBorderOffsetToRect(NSRect aRect)
|
|||
/* Get the next event, blocking if necessary.
|
||||
* No limit, block until we get an event. */
|
||||
theEvent = [NSApp nextEventMatchingMask: eventMask
|
||||
untilDate: nil
|
||||
untilDate: nil
|
||||
inMode: NSEventTrackingRunLoopMode
|
||||
dequeue: YES];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue