ninjinkun / NJKWebViewProgress

UIWebView progress interface
MIT License
3.89k stars 594 forks source link

incrementProgress confuse me #44

Closed xuguoxing closed 9 years ago

xuguoxing commented 9 years ago

In the incrementProgress method, two line code confuse me.

I think float maxProgress = _interactive ? NJKFinalProgressValue : NJKInteractiveProgressValue; should be float maxProgress = _interactive ? NJKInteractiveProgressValue: NJKFinalProgressValue;

and

float increment = (maxProgress - progress) * remainPercent; should be float increment = (maxProgress - progress) * (1-remainPercent);

Do I think wrong?