Android: Handle pointer event cancellation

This commit is contained in:
Henrik Rydgård
2026-02-06 12:47:25 +01:00
parent 4c72a1c041
commit fb88dbbbbf
@@ -171,6 +171,13 @@ public class NativeApp {
if (ev.getActionIndex() == i)
code = 4;
break;
case MotionEvent.ACTION_CANCEL:
Log.i(TAG, "ACTION_CANCEL");
if (ev.getActionIndex() == i) {
// Handle like ACTION_UP for now.
code = 4;
}
break;
case MotionEvent.ACTION_MOVE: {
code = 1;
if (Build.VERSION.SDK_INT >= 24) {