Bug 1583572 - Return correct result when queueing touch events r=geckoview-reviewers,agi

Differential Revision: https://phabricator.services.mozilla.com/D46963

--HG--
extra : moz-landing-system : lando
This commit is contained in:
James Willcox 2019-09-24 23:01:58 +00:00
parent 00b4395dc0
commit 249035a7a2

View File

@ -151,7 +151,7 @@ public class PanZoomController {
private @InputResult int handleMotionEvent(final MotionEvent event) {
if (!mAttached) {
mQueuedEvents.add(new Pair<>(EVENT_SOURCE_MOTION, event));
return INPUT_RESULT_UNHANDLED;
return INPUT_RESULT_HANDLED;
}
final int action = event.getActionMasked();
@ -206,7 +206,7 @@ public class PanZoomController {
private @InputResult int handleScrollEvent(final MotionEvent event) {
if (!mAttached) {
mQueuedEvents.add(new Pair<>(EVENT_SOURCE_SCROLL, event));
return INPUT_RESULT_UNHANDLED;
return INPUT_RESULT_HANDLED;
}
final int count = event.getPointerCount();