Merge pull request #42 from Pacalini/dev

reader: fix start/end flipping
This commit is contained in:
nyne
2024-11-14 18:24:26 +08:00
committed by GitHub

View File

@@ -244,7 +244,9 @@ 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) {
return false; if(!(chapter == 1 && page == 1) && !(chapter == maxChapter && page == maxPage)) {
return false;
}
} }
this.page = page; this.page = page;
update(); update();