Skip to content

Commit

Permalink
Merge pull request #3624 from mstepanov/timob-5354-30x
Browse files Browse the repository at this point in the history
(3_0_X)[TIMOB-5354] iOS: fix animations running concurrently with keyboard animation
  • Loading branch information
vishalduggal committed Dec 28, 2012
2 parents 5654371 + f8e2dab commit 725919a
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions iphone/Classes/TiAnimation.m
Original file line number Diff line number Diff line change
Expand Up @@ -398,15 +398,8 @@ -(void)animate:(id)args
animatedView = [theview retain];

if (!transitionAnimation) {
UIViewAnimationOptions options = (UIViewAnimationOptionAllowUserInteraction); // Backwards compatible
if ([view_ animating]) {
//TIMOB-10318
//Start from current state if animations are already running. Otherwise from initial value.
options = options | UIViewAnimationOptionBeginFromCurrentState;
}
else {
[view_ animationStarted];
}
UIViewAnimationOptions options = (UIViewAnimationOptionAllowUserInteraction | UIViewAnimationOptionBeginFromCurrentState); // Backwards compatible
[view_ animationStarted];
NSTimeInterval animationDuration = [self animationDuration];

options |= [curve intValue];
Expand Down

0 comments on commit 725919a

Please sign in to comment.