зеркало из https://github.com/mozilla/pjs.git
Tell Cocoa explicitly that we want to see mouse move events when the pointer enters our window, so that we can change the cursor as needed. Bug 161794, patch by nhamblen@mac.com, r=bryner [affects Camino build only]
This commit is contained in:
Родитель
4e18cb33f7
Коммит
e6a0e0aa38
|
@ -2648,12 +2648,17 @@ nsChildView::Idle()
|
|||
{
|
||||
// checks to see if we should change to the hand cursor
|
||||
[self flagsChanged:theEvent];
|
||||
// we need to forward mouse move events to gecko when the mouse
|
||||
// is over a gecko view
|
||||
[[self window] setAcceptsMouseMovedEvents: YES];
|
||||
}
|
||||
|
||||
- (void)mouseExited:(NSEvent*)theEvent
|
||||
{
|
||||
// checks to see if we should change from the hand cursor
|
||||
[self flagsChanged:theEvent];
|
||||
// no need to monitor mouse movements outside of the gecko view
|
||||
[[self window] setAcceptsMouseMovedEvents: NO];
|
||||
}
|
||||
|
||||
- (void)rightMouseDown:(NSEvent *)theEvent
|
||||
|
|
Загрузка…
Ссылка в новой задаче