fix(tvOS): route dpad clicks through engine

This commit is contained in:
edde746
2026-05-11 18:08:56 +02:00
parent 0775ea0d26
commit 9085d4d94b
9 changed files with 142 additions and 91 deletions
@@ -108,12 +108,11 @@ class AppleTvRemoteTouchService {
if (position == null) return;
_moveTouch(position.$1, position.$2);
case 'ended':
final position = _positionFrom(arguments);
if (position == null) {
_resetTouch();
return;
}
_moveTouch(position.$1, position.$2);
// Drop the lift frame: the final position on touchesEnded is
// unreliable on the Siri Remote — a natural finger pivot during
// lift can register enough delta from the post-last-swipe anchor
// to fire a stray opposite-direction swipe. In-gesture 'move'
// events have already covered any legitimate swipe motion.
_resetTouch();
case 'cancelled':
_resetTouch();