Skip to content

Commit

Permalink
fixed occasional flickering
Browse files Browse the repository at this point in the history
  • Loading branch information
Dillion committed Feb 7, 2012
1 parent 3a315e8 commit a0114d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file not shown.
4 changes: 2 additions & 2 deletions transform/framework/AnimationDelegate.m
Expand Up @@ -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];
Expand Down

0 comments on commit a0114d6

Please sign in to comment.