提交 0114460c 编写于 作者: A Adam Barth

Merge pull request #2065 from abarth/millis_micros

Scrollable widgets don't fling in MojoShell
......@@ -6,7 +6,7 @@ import("//mojo/public/mojo_application.gni")
import("//mojo/public/tools/bindings/mojom.gni")
mojo_native_application("mojo") {
output_name = "sky_shell"
output_name = "flutter"
sources = [
"content_handler_impl.cc",
......
......@@ -122,7 +122,9 @@ void PlatformViewMojo::OnEvent(mojo::EventPtr event,
if (!data)
break;
pointer::PointerPtr pointer = pointer::Pointer::New();
pointer->time_stamp = event->time_stamp;
// TODO(abarth): Sort out the units for time_stamp.
// See https://github.com/domokit/mojo/issues/541
pointer->time_stamp = event->time_stamp / 1000;
pointer->pointer = data->pointer_id;
pointer->type = GetTypeFromAction(event->action);
pointer->kind = GetKindFromKind(data->kind);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册