We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d5ed238 + 0e87eaa commit e2c7129Copy full SHA for e2c7129
1 file changed
src/Tween.ts
@@ -76,13 +76,13 @@ export class Tween<T extends UnknownProps> {
76
77
this._valuesEnd = target
78
this._propertiesAreSetUp = false
79
- this._duration = duration
+ this._duration = duration < 0 ? 0 : duration
80
81
return this
82
}
83
84
duration(duration = 1000): this {
85
86
87
88
0 commit comments