未验证 提交 5da00647 编写于 作者: A amirh 提交者: GitHub

Fix wrong conversion of MotionEvent to Flutter's PointerEvent kind. (#5894)

We were sending the toolType values as-is which is wrong, e.g touch
events showed in Flutter as mouse events.
上级 72a38a6b
......@@ -429,7 +429,7 @@ public class FlutterView
return;
}
int pointerKind = event.getToolType(pointerIndex);
int pointerKind = getPointerDeviceTypeForToolType(event.getToolType(pointerIndex));
if (pointerKind == -1) {
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册