mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 15:57:25 +00:00
Fix the change chapter gesture
This commit is contained in:
@@ -555,18 +555,20 @@ class _ContinuousModeState extends State<_ContinuousMode>
|
|||||||
delayedSetIsScrolling(false);
|
delayedSetIsScrolling(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
var length = reader.maxChapter;
|
if (notification is ScrollUpdateNotification) {
|
||||||
if (!scrollController.hasClients) return false;
|
var length = reader.maxChapter;
|
||||||
if (scrollController.position.pixels <=
|
if (!scrollController.hasClients) return false;
|
||||||
scrollController.position.minScrollExtent &&
|
if (scrollController.position.pixels <=
|
||||||
reader.chapter != 1) {
|
scrollController.position.minScrollExtent &&
|
||||||
context.readerScaffold.setFloatingButton(-1);
|
reader.chapter != 1) {
|
||||||
} else if (scrollController.position.pixels >=
|
context.readerScaffold.setFloatingButton(-1);
|
||||||
scrollController.position.maxScrollExtent &&
|
} else if (scrollController.position.pixels >=
|
||||||
reader.chapter < length) {
|
scrollController.position.maxScrollExtent &&
|
||||||
context.readerScaffold.setFloatingButton(1);
|
reader.chapter < length) {
|
||||||
} else {
|
context.readerScaffold.setFloatingButton(1);
|
||||||
context.readerScaffold.setFloatingButton(0);
|
} else {
|
||||||
|
context.readerScaffold.setFloatingButton(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user