Device: Roku Ultra 4800RW, OS 16.0.4 build 834, 1080p (FHD channel)
Component: RowList, rowFocusAnimationStyle: “fixedFocus”
Severity: High. Focus jumps to the far end of the row, which looks to the user like the row scrolled away from under them.
Summary
If a held LEFT or RIGHT is released in the same frame that the row’s scroll arrives at its first or last item, RowList moves one more item past the end. Rows in this style don’t wrap, so the extra step goes past the end and RowList wraps around to the opposite end of the row:
- RIGHT: currFocusColumn animates from the last index towards last + 1 (e.g. 7.0 → 7.99), then becomes 0. rowItemFocused reports [row, 0].
- LEFT: at release currFocusColumn is 0. It then jumps to just under last + 1 (e.g. 7.85) and animates down to the last index. rowItemFocused reports [row, last].
Steps to reproduce
- Create a Scene containing a RowList with two rows: row 0 with 4 items and row 1 with 8 items. Set rowFocusAnimationStyle: “fixedFocus”, vertFocusAnimationStyle: “fixedFocus”, itemSize: [1749, 330], rowItemSize: [[398, 330]], rowItemSpacing: [[24, 0]], numRows: 3, and give it focus. drawFocusFeedback doesn’t matter; it reproduced with both values.
- Observe currFocusColumn and rowItemFocused, printing every change.
- Press DOWN to focus row 1, column 0.
- Hold RIGHT and release it just as the row reaches item 7. Over ECP, run keydown/Right, wait about 2.45 seconds, then run keyup/Right. The exact delay depends on the device’s scroll timing, so scan delays around the moment the row arrives at the last item.
Expected
Focus stays on [1,7], the last item.
Actual
currFocusColumn continues past 7 (7.09 … 7.99), then becomes 0, and rowItemFocused reports [1,0]. The row visibly scrolls back to its start. Excerpt of a trace (ms timestamps):
cfc t=4280 6.99763
key t=4297 right press=false
cfc t=4298 7
cfc t=4314 7.09242
…
cfc t=4630 7.99763
cfc t=4647 0
rowItemFocused [1,0]
The LEFT case mirrors this: hold LEFT from the last item and release as the row reaches item 0. Focus ends on the last item.
Frequency
It needs the release to land within roughly one frame of the arrival:
- Across 400 trials with hold lengths spread over 1.6–3.0 seconds, all 5 failures had a hold length of 2.45–2.47 seconds.
- With holds limited to that window, it failed in 6 of 40 trials on a newly created RowList, and 11 of 40 on one already scrolled to its end before. So the row being new doesn’t matter.
- In real use it shows up when a user holds a key and lets go as the row reaches its end.
Notes
currFocusColumn is greater than the last index only in this case, which a row that doesn’t wrap should never reach. Apps can detect that and write jumpToRowItem back to the end the user was heading for. That workaround reduced the failures to 0 of 220 trials in our app. After that jump, RowList first reports the wrapped item (inline or a few frames later) before reporting the target.
