Improve auto-scroll condition in manga and novel readers

This commit is contained in:
Moustapha Kodjo Amadou 2025-11-08 20:36:28 +01:00
parent 6eda6de614
commit b1b71ea4d3
2 changed files with 3 additions and 2 deletions

View file

@ -2515,7 +2515,7 @@ class _MangaChapterPageGalleryState
vsync: this,
fullWidth: true,
);
if (!autoScrollAreadyFalse) {
if (!autoScrollAreadyFalse || _autoScroll.value) {
if (_autoScrollPage.value) {
_autoPagescroll();
_autoScroll.value = true;

View file

@ -1080,7 +1080,8 @@ class _NovelWebViewState extends ConsumerState<NovelWebView>
context: context,
vsync: this,
);
if (!autoScrollAreadyFalse) {
if (!autoScrollAreadyFalse ||
_autoScroll.value) {
if (_autoScrollPage.value) {
_autoPagescroll();
_autoScroll.value = true;