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:
pinkerton%netscape.com 2003-06-03 20:40:34 +00:00
Родитель cda4aff23f
Коммит 29c4d5661f
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -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];
}