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:
@@ -429,7 +429,7 @@ public class FlutterView
|
||||
return;
|
||||
}
|
||||
|
||||
int pointerKind = event.getToolType(pointerIndex);
|
||||
int pointerKind = getPointerDeviceTypeForToolType(event.getToolType(pointerIndex));
|
||||
if (pointerKind == -1) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user