Fix unpressing while skipping delay block

This commit is contained in:
Yaroslav 2026-01-22 00:53:42 +03:00
parent 92337be649
commit ffc30eb18c
2 changed files with 8 additions and 8 deletions

View File

@ -191,10 +191,6 @@ void EpubReaderActivity::loop() {
mappedInput.wasReleased(MappedInputManager::Button::Power)) ||
mappedInput.wasReleased(MappedInputManager::Button::Right);
if (delayedSkipPending) {
return;
}
if (!prevReleased && !nextReleased) {
return;
}
@ -205,6 +201,10 @@ void EpubReaderActivity::loop() {
return;
}
if (delayedSkipPending) {
return;
}
// any botton press when at end of the book goes back to the last page
if (currentSpineIndex > 0 && currentSpineIndex >= epub->getSpineItemsCount()) {
currentSpineIndex = epub->getSpineItemsCount() - 1;

View File

@ -140,10 +140,6 @@ void XtcReaderActivity::loop() {
mappedInput.wasReleased(MappedInputManager::Button::Power)) ||
mappedInput.wasReleased(MappedInputManager::Button::Right);
if (delayedSkipPending) {
return;
}
if (!prevReleased && !nextReleased) {
return;
}
@ -154,6 +150,10 @@ void XtcReaderActivity::loop() {
return;
}
if (delayedSkipPending) {
return;
}
// Handle end of book
if (currentPage >= xtc->getPageCount()) {
currentPage = xtc->getPageCount() - 1;