forked from organicmaps/organicmaps
[ios] Fixed progress stuck.
This commit is contained in:
parent
86afadfe2e
commit
783a06da6e
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue