[ios] Fixed progress stuck.

This commit is contained in:
Илья Гречухин 2015-11-18 19:27:03 +03:00
parent 86afadfe2e
commit 783a06da6e

View file

@ -24,6 +24,7 @@
- (void)reset
{
_progress = 0.;
[self.rootView updatePath:0.];
self.nextProgressToAnimate = nil;
}
@ -42,6 +43,7 @@
- (void)startSpinner
{
[self reset];
[self.rootView startSpinner];
}
@ -72,9 +74,12 @@
- (void)setProgress:(CGFloat)progress
{
if (progress <= _progress)
return;
if (self.rootView.animating)
{
self.nextProgressToAnimate = @(progress);
if (progress > self.nextProgressToAnimate.floatValue)
self.nextProgressToAnimate = @(progress);
}
else
{