crisbeto / angular-svg-round-progressbar

Angular module that uses SVG to create a circular progressbar

Home Page:https://crisbeto.github.io/angular-svg-round-progressbar/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setting max while animation is in progress causes round-progress to have a wrong value.

bitforcesrl opened this issue · comments

If [max] is changed while the animation is still in progress, the round progress may show a wrong value. (Probably the values are not capped).

To reproduce:
Open the following link (official example):
http://crisbeto.github.io/angular-svg-round-progressbar/

  • set Current to 0
  • set Max to 1
  • set duration to 80000 (80,000)
  • set Current to 1635
  • before the animation ends, set Max to 1500

Expected:

  • Round progress should be filled because Current is > than Max

Actual:

  • animation stops and fill value is somewhere 1%