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).
This commit is contained in:
Amir Hardon
2018-07-25 12:04:54 -07:00
committed by amirh
parent 30562c503e
commit 90d63afdeb

View File

@@ -243,7 +243,7 @@ public class PlatformViewsController implements MethodChannel.MethodCallHandler
flags
);
view.onTouchEvent(event);
view.dispatchTouchEvent(event);
result.success(null);
}