Skip to content

Commit 897851a

Browse files
Merge pull request #73 from LottieFiles/fix/global-speed
fix: fixed speed affecting all lotties on a page
2 parents cb47fc6 + 92cec07 commit 897851a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Player.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ export class Player extends React.Component<IPlayerProps, IPlayerState> {
301301
renderer,
302302
});
303303
if (speed) {
304-
lottie.setSpeed(speed);
304+
newInstance.setSpeed(speed);
305305
}
306306
this.setState({ animationData });
307307

0 commit comments

Comments
 (0)