From dc35cf11ef33254c640c427d40f086bca98b1bb7 Mon Sep 17 00:00:00 2001 From: start141 <415043846@qq.com> Date: Fri, 3 Jun 2016 12:16:09 +0800 Subject: [PATCH] fix #239 --- ptr-lib/src/in/srain/cube/views/ptr/PtrFrameLayout.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ptr-lib/src/in/srain/cube/views/ptr/PtrFrameLayout.java b/ptr-lib/src/in/srain/cube/views/ptr/PtrFrameLayout.java index 93e761c..e9324bb 100755 --- a/ptr-lib/src/in/srain/cube/views/ptr/PtrFrameLayout.java +++ b/ptr-lib/src/in/srain/cube/views/ptr/PtrFrameLayout.java @@ -979,6 +979,10 @@ public void run() { movePos(deltaY); post(this); } else { + // fix #239 + if (mPtrIndicator.getCurrentPosY() != mTo) { + movePos(mTo - mPtrIndicator.getCurrentPosY()); + } finish(); } }