Fix a few aspects of the EvenHub list container emulation

This commit is contained in:
James Babcock committed 2026-08-16 20:59:42 -07:00
1 parent b9f48c8e16
commit 662aca0c2f
2 files changed
+35 -12

No files matched your search

+2 -1
View File
@@ -195,7 +195,8 @@ export class EvenHubSession {
}
private scrollList(list: EvenHubListContainer, eventType: number): void {
const delta = eventType === SCROLL_TOP_EVENT ? 1 : -1;
// Swipe up selects the previous item, swipe down the next (stock direction).
const delta = eventType === SCROLL_TOP_EVENT ? -1 : 1;
const next = list.selectedIndex + delta;
if (next < 0 || next >= list.itemNames.length) {
// At a boundary the selection stays put and the app hears about it.