From 055db20da3fd56a32de7277b5f939a555ec378eb Mon Sep 17 00:00:00 2001 From: Wes Johnston Date: Tue, 9 Sep 2014 15:10:07 -0700 Subject: [PATCH] Bug 966493 - Mark touchstart and end events as handling user input. r=smaug --- layout/base/nsPresShell.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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();