Skip to content

[bug]: Version 10.0.1 broke useSpring animation #2404

@MikesGlitch

Description

@MikesGlitch

Which react-spring target are you using?

  • @react-spring/web
  • @react-spring/three
  • @react-spring/native
  • @react-spring/konva
  • @react-spring/zdog

What version of react-spring are you using?

Trying to use: 10.0.3

What's Wrong?

I upgraded from 10.0.0 to 10.0.1 and it messed up a mobile navigation drag animation.

Previously it was working smothly, but now, it only works every second time I drag it.

I believe the breaking change came in with: #2372

To Reproduce

Here's the reproduction code:

https://codesandbox.io/p/sandbox/wfqjr3

And a demo:

Screencast.from.08-10-25.23.07.30.webm
  1. Go to the codesandbox demo
  2. Use your mouse to drag up the horrible red menu I've made, but don't relesae your click
  3. Notice that the first time you drag it up (without releasing the click) it resets itself

To see it working properly, downgrade to version 10.0.0.

Expected Behaviour

As you can see in the demo, if you go back to version 10.0.0, it behaves consistently rather than failing every second time.

Link to repo

https://codesandbox.io/p/sandbox/wfqjr3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions