Commit 978a4bb1 authored by Adrien Maglo's avatar Adrien Maglo

FlingViewGroup: cancel scrolling animation on size changed

parent 17dafe83
......@@ -93,6 +93,8 @@ public class FlingViewGroup extends ViewGroup {
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
if (!mScroller.isFinished())
mScroller.abortAnimation();
super.onSizeChanged(w, h, oldw, oldh);
scrollTo(mCurrentView * w, 0);
requestLayout();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment