Bug 966493 - Mark touchstart and end events as handling user input. r=smaug

This commit is contained in:
Wes Johnston 2014-09-09 15:10:07 -07:00
Родитель 2691734865
Коммит 055db20da3
1 изменённых файлов: 5 добавлений и 2 удалений

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

@ -7585,6 +7585,7 @@ PresShell::HandleEventInternal(WidgetEvent* aEvent, nsEventStatus* aStatus)
isHandlingUserInput = true;
break;
case NS_TOUCH_START: {
isHandlingUserInput = true;
WidgetTouchEvent* touchEvent = aEvent->AsTouchEvent();
// if there is only one touch in this touchstart event, assume that it is
// the start of a new touch session and evict any old touches in the
@ -7609,8 +7610,10 @@ PresShell::HandleEventInternal(WidgetEvent* aEvent, nsEventStatus* aStatus)
}
break;
}
case NS_TOUCH_CANCEL:
case NS_TOUCH_END: {
case NS_TOUCH_END:
isHandlingUserInput = true;
// Fall through to touchcancel code
case NS_TOUCH_CANCEL: {
// Remove the changed touches
// need to make sure we only remove touches that are ending here
WidgetTouchEvent* touchEvent = aEvent->AsTouchEvent();