Update the shouldAnimate status when animating status changes, to avoid that macOS call `animates = NO`, `setImage:newImage`, `aniamtes = YES`, the animation does not restarted issue
This commit is contained in:
parent
fc4497d4f9
commit
3d1382a1cb
|
@ -531,7 +531,7 @@ static NSUInteger SDDeviceFreeMemory() {
|
|||
- (void)updateShouldAnimate
|
||||
{
|
||||
#if SD_MAC
|
||||
BOOL isVisible = self.window && self.superview && ![self isHidden] && self.alphaValue > 0.0 && self.animates;
|
||||
BOOL isVisible = self.window && self.superview && ![self isHidden] && self.alphaValue > 0.0;
|
||||
#else
|
||||
BOOL isVisible = self.window && self.superview && ![self isHidden] && self.alpha > 0.0;
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue