mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-21 19:49:45 +00:00
beginTime now use the animation speed value for proper transition
This commit is contained in:
@@ -323,7 +323,7 @@ static NSString * const kCompContainerAnimationKey = @"play";
|
||||
animation.delegate = self;
|
||||
animation.removedOnCompletion = NO;
|
||||
if (offset != 0) {
|
||||
animation.beginTime = CACurrentMediaTime() - offset;
|
||||
animation.beginTime = CACurrentMediaTime() - (offset * 1 / _animationSpeed);
|
||||
}
|
||||
[_compContainer addAnimation:animation forKey:kCompContainerAnimationKey];
|
||||
_isAnimationPlaying = YES;
|
||||
|
||||
Reference in New Issue
Block a user