Skip to content

Commit

Permalink
Fix for layer out frame
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon_withrow committed Jun 12, 2017
1 parent 5b5d496 commit f766cda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lottie-ios/Classes/Models/LOTLayer.m
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ - (void)_mapFromJSON:(NSDictionary *)jsonDictionary

NSMutableArray *keys = [NSMutableArray array];
NSMutableArray *keyTimes = [NSMutableArray array];
CGFloat layerLength = _outFrame.integerValue;
CGFloat layerLength = _outFrame.integerValue - 1;
_layerDuration = (layerLength / _framerate.floatValue);

if (_hasInAnimation) {
Expand Down

0 comments on commit f766cda

Please sign in to comment.