Permalink
Browse files

fixed occasional flickering

  • Loading branch information...
1 parent 3a315e8 commit a0114d6ee3b395980ea6a67aeb877a8f4b7991de @Dillion committed Feb 7, 2012
@@ -285,14 +285,14 @@ - (void)resetTransformValues
CATransform3D aTransform = CATransform3DIdentity;
targetLayer.sublayerTransform = aTransform;
- [CATransaction commit];
-
if (value == 10.0f) {
[transformView rearrangeLayers:currentDirection :3];
} else {
[transformView rearrangeLayers:currentDirection :2];
}
+ [CATransaction commit];
+
if (controller && [controller respondsToSelector:@selector(animationDidFinish:)]) {
if (currentDirection == kDirectionForward && value == 10.0f) {
[controller animationDidFinish:1];

0 comments on commit a0114d6

Please sign in to comment.