fix: go to prev page on the first one, get teleported to the end of book (#970)

## Summary

1. Go to the first page in a .epub file.
2. Hit `Up` button
3. Get teleported to the last page :)

`TxtRenderActivity` seems to have this if check, but EPUB one does not.

---

### AI Usage

While CrossPoint doesn't have restrictions on AI tools in contributing,
please be transparent about their usage as it
helps set the right context for reviewers.

Did you use AI tools to help write this code? _**NO**_
This commit is contained in:
Егор Мартынов
2026-02-19 17:59:15 +07:00
committed by cottongin
parent 109f95df78
commit 6403ce6309

View File

@@ -337,7 +337,7 @@ void EpubReaderActivity::loop() {
if (prevTriggered) {
if (section->currentPage > 0) {
section->currentPage--;
} else {
} else if (currentSpineIndex > 0) {
// We don't want to delete the section mid-render, so grab the semaphore
{
RenderLock lock(*this);