Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
FIX : player keeps playing while not visible to user
  • Loading branch information
ZhuLida committed Jul 11, 2019
commit 3903960944435bedd8294d9f699abf8c07470dec
3 changes: 3 additions & 0 deletions Source/SVGAPlayer.m
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,9 @@ - (void)update {
}

- (void)next {
if (!self.window) {
return;
}
if (self.reversing) {
self.currentFrame--;
if (self.currentFrame < (NSInteger)MAX(0, self.currentRange.location)) {
Expand Down