-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
In mathematics this formula (1 - Math.exp(-1 * this._time / this.timeConstant)) may never reach 1, but in computer it does,like this:

if timeConstant set 100,You can see my progress bar component is reaching 100 very quickly:
So I think we can add a limit to the operation of setting the progress 🤔:
setProgress(Math.min(progress, 0.9999999999999999))Of course we can set timeConstant to avoid reaching 1 as much as possible (This is what we currently do in our project 😄)
Metadata
Metadata
Assignees
Labels
No labels

