From 5976ee2196017fce52310e286f0024f9362a1d31 Mon Sep 17 00:00:00 2001 From: Amir Hardon Date: Tue, 28 Aug 2018 11:57:11 -0700 Subject: [PATCH] Convert synthesized Android motion events to long and not to int. (this was a bug, the values would overflow some times) --- .../io/flutter/plugin/platform/PlatformViewsController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/platform/android/io/flutter/plugin/platform/PlatformViewsController.java b/shell/platform/android/io/flutter/plugin/platform/PlatformViewsController.java index 5b5ed193d09e9..7dc017611ea99 100644 --- a/shell/platform/android/io/flutter/plugin/platform/PlatformViewsController.java +++ b/shell/platform/android/io/flutter/plugin/platform/PlatformViewsController.java @@ -254,8 +254,8 @@ private void onTouch(MethodCall call, MethodChannel.Result result) { } MotionEvent event = MotionEvent.obtain( - downTime.intValue(), - eventTime.intValue(), + downTime.longValue(), + eventTime.longValue(), action, pointerCount, pointerProperties,