Commit ab927387 authored by asimjour's avatar asimjour Committed by Commit bot

VR: Fix timing of tap event

Fixed the conversion of timestamps in vr_input_manager

BUG=

Review-Url: https://codereview.chromium.org/2622333002
Cr-Commit-Position: refs/heads/master@{#443081}
parent c2a83f80
...@@ -18,14 +18,14 @@ namespace vr_shell { ...@@ -18,14 +18,14 @@ namespace vr_shell {
namespace { namespace {
WebGestureEvent MakeGestureEvent(WebInputEvent::Type type, WebGestureEvent MakeGestureEvent(WebInputEvent::Type type,
int64_t time_ms, double time,
float x, float x,
float y) { float y) {
WebGestureEvent result; WebGestureEvent result;
result.type = type; result.type = type;
result.x = x; result.x = x;
result.y = y; result.y = y;
result.timeStampSeconds = time_ms / 1000.0; result.timeStampSeconds = time;
result.sourceDevice = blink::WebGestureDeviceTouchpad; result.sourceDevice = blink::WebGestureDeviceTouchpad;
return result; return result;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment