Fix button navigation

This commit is contained in:
jpirnay
2026-05-14 18:44:49 +02:00
parent c9060df3e4
commit 07bdb10842
8 changed files with 44 additions and 49 deletions
@@ -71,18 +71,6 @@ void XtcReaderChapterSelectionActivity::loop() {
finish();
return;
}
if ((ev.button == MappedInputManager::Button::PageBack || ev.button == MappedInputManager::Button::Left) &&
ev.type == ButtonEventManager::PressType::Short) {
selectorIndex = ButtonNavigator::previousIndex(selectorIndex, totalItems);
requestUpdate();
return;
}
if ((ev.button == MappedInputManager::Button::PageForward || ev.button == MappedInputManager::Button::Right) &&
ev.type == ButtonEventManager::PressType::Short) {
selectorIndex = ButtonNavigator::nextIndex(selectorIndex, totalItems);
requestUpdate();
return;
}
}
buttonNavigator.onNextList(selectorIndex, totalItems, [this] { requestUpdate(); });