Skip to content

Tween with duration 0 goes to NaN before becoming the target value #14897

@TheSpeedM

Description

@TheSpeedM

Describe the bug

Setting a Tween's options to { duration: 0 } sets the current value to NaN before setting the current value to the target value (which would be the desired behavior IMO).

Reproduction

https://svelte.dev/playground/300534b17dbd4ef2b5b72bfaa41672a7?version=5.16.1

Also view console output to see it becoming NaN before going to the actual value.

Logs

No response

System Info

REPL 5.16.1

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions