Skip to content

Commit 684a616

Browse files
author
Chris Banes
committed
Fix Rotate Animation Drawable WOBBLE
1 parent 420b36a commit 684a616

4 files changed

Lines changed: 2 additions & 2 deletions

File tree

47.3 KB
Loading
48.1 KB
Loading
48.3 KB
Loading

library/src/com/handmark/pulltorefresh/library/internal/RotateLoadingLayout.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ public RotateLoadingLayout(Context context, Mode mode, Orientation scrollDirecti
5757

5858
public void onLoadingDrawableSet(Drawable imageDrawable) {
5959
if (null != imageDrawable) {
60-
mRotationPivotX = imageDrawable.getIntrinsicWidth() / 2f;
61-
mRotationPivotY = imageDrawable.getIntrinsicHeight() / 2f;
60+
mRotationPivotX = Math.round(imageDrawable.getIntrinsicWidth() / 2f);
61+
mRotationPivotY = Math.round(imageDrawable.getIntrinsicHeight() / 2f);
6262
}
6363
}
6464

0 commit comments

Comments
 (0)