lucasr / twoway-view

[DEPRECATED] RecyclerView made simple
5.23k stars 1.02k forks source link

Fixed glitching scroll offset when using image loaders #233

Open vdesmet93 opened 9 years ago

vdesmet93 commented 9 years ago

When using Twoway View with Picasso for async image loading, onLayoutChildren() will be called, causing the list to reset it's scroll offset.

This issue is fixed by saving the correct scroll position before calling moveLayoutToPosition() resulting in smooth scrolling without glitches.

I guess this also fixes issue #159.

martijnvm commented 9 years ago

Thank you !