onLayoutChildren
resets the current scroll offset and changes the scroll position
#83
Labels
bug
Something isn't working
🐛 Describe
When
onLayoutChildren
is called at a non-zero scroll offset, e.g., by a call toAdapter.notifyItemRangeChanged(0, size)
, the scroll offset will be reset to zero.🐌 Steps to reproduce
notifyItemRangeChanged(0, size)
on the adapter, and observeonLayoutChildren
being called again.🦋 Expected behavior
The scroll position should be kept. Compare RecyclerView's built-in
LinearLayoutManager
, which shows this behavior.🐝 Requested assignment
I would love to fix this myself, but with the complexity of the RecyclerView library and a lack of knowledge and time on my side, I won't be able to fix this myself.
The text was updated successfully, but these errors were encountered: