mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 07:47:24 +00:00
reader: fix start/end flipping
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user