Bug 1003093 - Fire pointerOUT event after firing pointerCANCEL event. r=smaug

This commit is contained in:
Maksim Lebedev 2014-04-29 05:41:00 +02:00
Родитель 0a610b2749
Коммит 08b52e229c
1 изменённых файлов: 7 добавлений и 6 удалений

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

@ -557,11 +557,6 @@ EventStateManager::PreHandleEvent(nsPresContext* aPresContext,
}
break;
}
case NS_POINTER_CANCEL:
{
GenerateMouseEnterExit(mouseEvent);
break;
}
case NS_MOUSE_EXIT:
// If the event is not a top-level window exit, then it's not
// really an exit --- we may have traversed widget boundaries but
@ -2864,7 +2859,13 @@ EventStateManager::PostHandleEvent(nsPresContext* aPresContext,
SetActiveManager(this, activeContent);
}
break;
case NS_POINTER_CANCEL:
case NS_POINTER_CANCEL: {
if(WidgetMouseEvent* mouseEvent = aEvent->AsMouseEvent()) {
GenerateMouseEnterExit(mouseEvent);
}
// This break was commented specially
// break;
}
case NS_POINTER_UP: {
WidgetPointerEvent* pointerEvent = aEvent->AsPointerEvent();
// After UP/Cancel Touch pointers become invalid so we can remove relevant helper from Table