diff --git a/layout/base/nsPresShell.cpp b/layout/base/nsPresShell.cpp index 7d41a5894646..9e79e55cd186 100644 --- a/layout/base/nsPresShell.cpp +++ b/layout/base/nsPresShell.cpp @@ -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();