| Index: chrome/browser/android/vr_shell/vr_shell.cc
|
| diff --git a/chrome/browser/android/vr_shell/vr_shell.cc b/chrome/browser/android/vr_shell/vr_shell.cc
|
| index 5c58081dcd53aee0a7ef018c996fff160a104ce2..3a89d7359123db1fdbb3c19f1c2d207aff492d3e 100644
|
| --- a/chrome/browser/android/vr_shell/vr_shell.cc
|
| +++ b/chrome/browser/android/vr_shell/vr_shell.cc
|
| @@ -501,9 +501,16 @@ void VrShell::SendEventsToTarget(VrInputManager* input_target,
|
|
|
| if (gesture->type == WebInputEvent::GestureScrollEnd) {
|
| CHECK(gesture_list.size() == 2);
|
| - std::unique_ptr<WebGestureEvent> fling_gesture =
|
| + std::unique_ptr<WebGestureEvent> followup_gesture =
|
| std::move(gesture_list.back());
|
| - content_input_manager_->ProcessUpdatedGesture(*fling_gesture.get());
|
| + if (followup_gesture->type == WebInputEvent::GestureTapDown) {
|
| + followup_gesture->data.tapDown.width = pixel_x;
|
| + followup_gesture->data.tapDown.height = pixel_y;
|
| + if (input_target != nullptr)
|
| + input_target->ProcessUpdatedGesture(*followup_gesture.get());
|
| + } else if (followup_gesture->type == WebInputEvent::GestureFlingStart) {
|
| + content_input_manager_->ProcessUpdatedGesture(*followup_gesture.get());
|
| + }
|
| }
|
|
|
| WebInputEvent::Type original_type = gesture->type;
|
|
|