提交 c9b7f2f7 编写于 作者: A Adam Barth

Scrollable widgets don't fling in MojoShell

There's some confusion over the units for time_stamp. This patch works around
the issue. I've filed a bug (https://github.com/domokit/mojo/issues/541) to
figure out the right fix.

Also, rename the final target to flutter.mojo, which is a more descriptive
name.
上级 e2a90c4d
...@@ -6,7 +6,7 @@ import("//mojo/public/mojo_application.gni") ...@@ -6,7 +6,7 @@ import("//mojo/public/mojo_application.gni")
import("//mojo/public/tools/bindings/mojom.gni") import("//mojo/public/tools/bindings/mojom.gni")
mojo_native_application("mojo") { mojo_native_application("mojo") {
output_name = "sky_shell" output_name = "flutter"
sources = [ sources = [
"content_handler_impl.cc", "content_handler_impl.cc",
......
...@@ -122,7 +122,9 @@ void PlatformViewMojo::OnEvent(mojo::EventPtr event, ...@@ -122,7 +122,9 @@ void PlatformViewMojo::OnEvent(mojo::EventPtr event,
if (!data) if (!data)
break; break;
pointer::PointerPtr pointer = pointer::Pointer::New(); 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->pointer = data->pointer_id;
pointer->type = GetTypeFromAction(event->action); pointer->type = GetTypeFromAction(event->action);
pointer->kind = GetKindFromKind(data->kind); pointer->kind = GetKindFromKind(data->kind);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册