mirror of
https://github.com/Ashinch/ReadYou.git
synced 2025-02-01 03:47:04 +01:00
fix a scroll bug (#165)
This commit is contained in:
parent
8b6dee4e80
commit
8be8877174
@ -45,7 +45,7 @@ fun LazyListState.isScrollDown(): Boolean {
|
||||
if (isScrollInProgress) {
|
||||
isScrollDown = when {
|
||||
firstVisibleItemIndex > preItemIndex -> true
|
||||
firstVisibleItemScrollOffset < preItemIndex -> false
|
||||
firstVisibleItemIndex < preItemIndex -> false
|
||||
else -> firstVisibleItemScrollOffset > preScrollStartOffset
|
||||
}
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user