Skip to content

overshootClamping is breaking for small changes in withSpring #7947

@sharifhh

Description

@sharifhh

Description

#7803

check my comment here, this PR introduced a bug with withSpring.

Steps to reproduce

try to do withSpring for a value that start from 1000 and goes to 900 with overshootClamping true.

it will fail and terminate immediately and won't go to 900.

Snack or a link to a repository

#7803

Reanimated version

4.0.0 + 4.0.1

Worklets version

0.4.0

React Native version

0.80.2

Platforms

Android, iOS

JavaScript runtime

None

Workflow

None

Architecture

None

Build type

No response

Device

No response

Host machine

None

Device model

No response

Acknowledgements

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Missing reproThis issue need minimum repro scenarioPlatform: AndroidThis issue is specific to AndroidPlatform: iOSThis issue is specific to iOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions