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

We were sending the toolType values as-is which is wrong, e.g touch
events showed in Flutter as mouse events.
This commit is contained in:
amirh
2018-07-27 16:12:26 -07:00
committed by GitHub
parent df1d0db25d
commit 30940056b0

View File

@@ -429,7 +429,7 @@ public class FlutterView
return;
}
int pointerKind = event.getToolType(pointerIndex);
int pointerKind = getPointerDeviceTypeForToolType(event.getToolType(pointerIndex));
if (pointerKind == -1) {
return;
}