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…
Reference in New Issue
Block a user