mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-06 23:57:39 +03:00
Fix unpressing while skipping delay block
This commit is contained in:
parent
92337be649
commit
ffc30eb18c
@ -191,10 +191,6 @@ void EpubReaderActivity::loop() {
|
|||||||
mappedInput.wasReleased(MappedInputManager::Button::Power)) ||
|
mappedInput.wasReleased(MappedInputManager::Button::Power)) ||
|
||||||
mappedInput.wasReleased(MappedInputManager::Button::Right);
|
mappedInput.wasReleased(MappedInputManager::Button::Right);
|
||||||
|
|
||||||
if (delayedSkipPending) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!prevReleased && !nextReleased) {
|
if (!prevReleased && !nextReleased) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -205,6 +201,10 @@ void EpubReaderActivity::loop() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (delayedSkipPending) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// any botton press when at end of the book goes back to the last page
|
// any botton press when at end of the book goes back to the last page
|
||||||
if (currentSpineIndex > 0 && currentSpineIndex >= epub->getSpineItemsCount()) {
|
if (currentSpineIndex > 0 && currentSpineIndex >= epub->getSpineItemsCount()) {
|
||||||
currentSpineIndex = epub->getSpineItemsCount() - 1;
|
currentSpineIndex = epub->getSpineItemsCount() - 1;
|
||||||
|
|||||||
@ -140,10 +140,6 @@ void XtcReaderActivity::loop() {
|
|||||||
mappedInput.wasReleased(MappedInputManager::Button::Power)) ||
|
mappedInput.wasReleased(MappedInputManager::Button::Power)) ||
|
||||||
mappedInput.wasReleased(MappedInputManager::Button::Right);
|
mappedInput.wasReleased(MappedInputManager::Button::Right);
|
||||||
|
|
||||||
if (delayedSkipPending) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!prevReleased && !nextReleased) {
|
if (!prevReleased && !nextReleased) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -154,6 +150,10 @@ void XtcReaderActivity::loop() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (delayedSkipPending) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Handle end of book
|
// Handle end of book
|
||||||
if (currentPage >= xtc->getPageCount()) {
|
if (currentPage >= xtc->getPageCount()) {
|
||||||
currentPage = xtc->getPageCount() - 1;
|
currentPage = xtc->getPageCount() - 1;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user