diff --git a/src/Tween.ts b/src/Tween.ts index 37bb75b0..2cc49bb0 100644 --- a/src/Tween.ts +++ b/src/Tween.ts @@ -76,13 +76,13 @@ export class Tween { this._valuesEnd = target this._propertiesAreSetUp = false - this._duration = duration + this._duration = duration < 0 ? 0 : duration return this } duration(duration = 1000): this { - this._duration = duration + this._duration = duration < 0 ? 0 : duration return this }