mirror of
https://github.com/Suwayomi/TachideskJUI.git
synced 2025-12-10 06:42:05 +01:00
Fix pager crashing on the last page (Closes #5)
This commit is contained in:
@@ -47,7 +47,9 @@ fun PagerReader(
|
||||
MoveTo.Previous -> currentPage - 1
|
||||
MoveTo.Next -> currentPage + 1
|
||||
}
|
||||
state.animateScrollToPage(page)
|
||||
if (page <= pages.size) {
|
||||
state.animateScrollToPage(page)
|
||||
}
|
||||
}
|
||||
.launchIn(this)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user