修正 ripple 中心不居中
This commit is contained in:
1 parent
d361eaf63d
commit
4c7c06e8dc
1 file changed
+4
-2
@@ -112,8 +112,10 @@ public class RippleSprite extends Sprite {
|
||||
mOuterRadius = ((float) Math.sqrt(halfWidth * halfWidth
|
||||
+ halfHeight * halfHeight));
|
||||
|
||||
//mStartingX = mBounds.exactCenterX();
|
||||
//mStartingY = mBounds.exactCenterY();
|
||||
if (!mKeepBound) {
|
||||
mStartingX = mBounds.exactCenterX();
|
||||
mStartingY = mBounds.exactCenterY();
|
||||
}
|
||||
clampStartingPosition();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user