fix a scroll bug (#165)
This commit is contained in:
parent
8b6dee4e80
commit
8be8877174
|
@ -45,7 +45,7 @@ fun LazyListState.isScrollDown(): Boolean {
|
||||||
if (isScrollInProgress) {
|
if (isScrollInProgress) {
|
||||||
isScrollDown = when {
|
isScrollDown = when {
|
||||||
firstVisibleItemIndex > preItemIndex -> true
|
firstVisibleItemIndex > preItemIndex -> true
|
||||||
firstVisibleItemScrollOffset < preItemIndex -> false
|
firstVisibleItemIndex < preItemIndex -> false
|
||||||
else -> firstVisibleItemScrollOffset > preScrollStartOffset
|
else -> firstVisibleItemScrollOffset > preScrollStartOffset
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user