From 90d63afdeb950df49e1146b8c0612089fc2ad5f1 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/engine/src/flutter/shell/platform/android/io/flutter/plugin/platform/PlatformViewsController.java b/engine/src/flutter/shell/platform/android/io/flutter/plugin/platform/PlatformViewsController.java index 52281f9d7a..0515c0291b 100644 --- a/engine/src/flutter/shell/platform/android/io/flutter/plugin/platform/PlatformViewsController.java +++ b/engine/src/flutter/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); }