Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: appcelerator/titanium_mobile
...
head fork: appcelerator/titanium_mobile
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
Commits on May 31, 2012
@billdawson billdawson TIMOB-9321 Android scale animations should anchor to view's center li…
…ke rotate animations and like iOS
5cdd07e
Commits on Jun 01, 2012
Opie Cyrus Merge pull request #2298 from billdawson/timob-9321
TIMOB-9321 Android scale animations should anchor to view's center like ...
3c9353c
View
6 android/titanium/src/java/org/appcelerator/titanium/view/Ti2DMatrix.java
@@ -49,7 +49,11 @@ public void apply(float interpolatedTime, Matrix matrix,
anchorY = anchorY == DEFAULT_ANCHOR_VALUE ? this.anchorY : anchorY;
switch (type) {
case TYPE_SCALE:
- matrix.preScale((interpolatedTime * (scaleToX - scaleFromX)) + scaleFromX, (interpolatedTime * (scaleToY - scaleFromY)) + scaleFromY); break;
+ matrix.preScale((interpolatedTime * (scaleToX - scaleFromX)) + scaleFromX,
+ (interpolatedTime * (scaleToY - scaleFromY)) + scaleFromY,
+ anchorX * childWidth,
+ anchorY * childHeight);
+ break;
case TYPE_TRANSLATE:
matrix.preTranslate(interpolatedTime * translateX, interpolatedTime * translateY); break;
case TYPE_ROTATE:

No commit comments for this range

Something went wrong with that request. Please try again.