Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 9fc1d17

Browse files
author
Kaushik Iska
committed
[android] Pass synthesized eventType to VirtualDisplay platform views
This workaround is to account for flutter/flutter#61169 It is not immediately clear why the actions synthesized by the framework are different from what is gotten by FlutterView.
1 parent 033c373 commit 9fc1d17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shell/platform/android/io/flutter/plugin/platform/PlatformViewsController.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ private MotionEvent toMotionEvent(float density, PlatformViewsChannel.PlatformVi
325325
return MotionEvent.obtain(
326326
trackedEvent.getDownTime(),
327327
trackedEvent.getEventTime(),
328-
trackedEvent.getAction(),
328+
touch.action, // TODO (kaushikiska): https://github.com/flutter/flutter/issues/61169
329329
touch.pointerCount,
330330
pointerProperties,
331331
pointerCoords,

0 commit comments

Comments
 (0)