summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Michal Brzezinski <brzezinski@google.com> 2023-12-15 11:52:42 +0000
committer Michal Brzezinski <brzezinski@google.com> 2023-12-15 18:39:37 +0000
commit84cba492ce54621383ad0c990e3a03cd4c0b9f78 (patch)
tree799ba18ed7c5a0cb466aaedfaa538c2f4ca66d64 /api/api.go
parent6f6018379c85a4e0bdf2a9a3534c7883c9b4c419 (diff)
Fixing tiles scrolling with arrow keys
Tiles were scrolling whenever ACTION_UP event was received on page indicator but that could also happen when user moves focus with arrows and only lands on page indicator. Solution is to react on ACTION_UP event only after first (instead of repeated) ACTION_DOWN was received on this view as well and view doesn't lose focus in the meantime. This logic is a bit more complicated so decided to make it internal in PageIndicator and extract this logic to separate class: LeftRightArrowPressedListener Test: LeftRightArrowPressedListenerTest Test: PagedTileLayoutTest Test: navigate shade with arrows and see tiles don't scroll when focus lands on them Fixes: 316554707 Flag: None Change-Id: I59cfc851971b1e52f68c6a7279bd9bf1e62af159
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions