reader: fix start/end flipping

This commit is contained in:
Pacalini
2024-11-14 18:10:47 +08:00
parent 0ac9ee7061
commit 47eb597d96

View File

@@ -244,8 +244,10 @@ abstract mixin class _ReaderLocation {
bool toPage(int page) { bool toPage(int page) {
if (_validatePage(page)) { if (_validatePage(page)) {
if (page == this.page) { if (page == this.page) {
if(!(chapter == 1 && page == 1) && !(chapter == maxChapter && page == maxPage)) {
return false; return false;
} }
}
this.page = page; this.page = page;
update(); update();
if (enablePageAnimation) { if (enablePageAnimation) {