From d2d8bf3941d87173bc6220f5c85de0246b18dae0 Mon Sep 17 00:00:00 2001 From: Amir Hardon Date: Wed, 25 Jul 2018 12:04:54 -0700 Subject: [PATCH] Pass touch events to embedded Android views with dispatchTouchEvents. Was previously calling onTouchEvent directly which doesn't make the event go through the full pipeline (e.g onInterceptTouchEvent is not called). --- .../io/flutter/plugin/platform/PlatformViewsController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/platform/android/io/flutter/plugin/platform/PlatformViewsController.java b/shell/platform/android/io/flutter/plugin/platform/PlatformViewsController.java index 52281f9d7..0515c0291 100644 --- a/shell/platform/android/io/flutter/plugin/platform/PlatformViewsController.java +++ b/shell/platform/android/io/flutter/plugin/platform/PlatformViewsController.java @@ -243,7 +243,7 @@ public class PlatformViewsController implements MethodChannel.MethodCallHandler flags ); - view.onTouchEvent(event); + view.dispatchTouchEvent(event); result.success(null); } -- GitLab