Merge pull request #2874 from dreampiggy/fix_behavior_macOS_animatedimage_animates_and_set_image
Fix SDAnimatedImage on macOS use extra aniamtes property check, which is not intuitive and cause extra setup before usage
This commit is contained in:
commit
6c36b7542a
|
@ -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