Files
DroidDeck/app
DeathKhan 7d942367fd fix(apps): Up and Down in the app grid follow fast presses and keep the row in view (#2906)
* fix(apps): Up and Down in the app grid follow fast presses and keep the row in view

The grid composes rows ahead of the view without placing them. Down focused a tile there directly, so focus moved into
rows that never scrolled in, and the next Down searched from a tile with no place on screen and landed on the first
tile, sending the list back to the top. Up used the grid's own search, which works from where tiles are drawn at that
moment: with presses faster than the scroll it skipped the first row or drifted a column. And presses aimed from the
last settled focus, so fast ones were lost.

Up and Down now aim from the tile a move is already heading to, scroll that row fully into view, then focus it. At the
first or last row a press leaves the grid as before, unless a move has not landed yet, in which case it waits.

* fix(apps): a newer Up/Down move cancels the one still on its way, and a cancelled reveal frees the edge rows

A move whose target was not yet attached kept retrying its focus after a newer press, so the older tile could take
focus back. Each press now cancels the move before it. The pending target is also cleared when the reveal scroll is
cancelled (for example by a touch scroll), so Down on the last row and Up on the first no longer stay blocked.

* Apps: an Up/Down move holds its target tile by id and clears it only if it is still the latest move

A list update that shifts the tiles no longer leaves the next press aiming from the old index, and a
target that left the list drops its move. A cancelled move finishing late no longer clears the target
of a newer move to the same tile.
2026-11-24 17:14:45 -05:00
..