framer / motion

Open source, production-ready animation and gesture library for React
https://framer.com/motion
MIT License
22.56k stars 748 forks source link

Fix velocity check if motion value initialised with undefined #2669

Closed mattgperry closed 1 month ago

mattgperry commented 1 month ago

When a deferred keyframe animation is started, we might not have resolved an initial keyframe for the MotionValue. This ensures the canTrackVelocity check only happens after we have a valid value.