зеркало из https://github.com/mozilla/pjs.git
always reset the cursor when leaving a view, don't go through the
drag-scroll logic since it won't help in this case when we leave gecko entirely. r=pink/sr=bryner (bug 187050, 159478, 204024) patch from nhamblen@mac.com.
This commit is contained in:
Родитель
cda4aff23f
Коммит
29c4d5661f
|
@ -2656,8 +2656,9 @@ nsChildView::Idle()
|
|||
|
||||
- (void)mouseExited:(NSEvent*)theEvent
|
||||
{
|
||||
// checks to see if we should change from the hand cursor
|
||||
[self flagsChanged:theEvent];
|
||||
// Gecko may have set the cursor to ibeam or link hand, or handscroll may
|
||||
// have set it to the open hand cursor. Cocoa won't call this during a drag.
|
||||
mGeckoChild->SetCursor(eCursor_standard);
|
||||
// no need to monitor mouse movements outside of the gecko view
|
||||
[[self window] setAcceptsMouseMovedEvents: NO];
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче