Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default value of spring precision: documentation does not match the code #6864

Closed
xitology opened this issue Oct 20, 2021 · 1 comment · Fixed by #6865
Closed

default value of spring precision: documentation does not match the code #6864

xitology opened this issue Oct 20, 2021 · 1 comment · Fixed by #6865

Comments

@xitology
Copy link

Describe the bug

On the documentation page for spring, the option precision is defined as "number, default 0.001". However in the source code, the default value of precision is set to 0.01. At least one of them must be wrong.

Reproduction

Documentation: https://github.com/sveltejs/svelte/blame/master/site/content/docs/03-run-time.md#L536
Source code: https://github.com/sveltejs/svelte/blob/master/src/runtime/motion/spring.ts#L71

Logs

No response

System Info

N/A

Severity

annoyance

@ignatiusmb
Copy link
Member

It was updated in #2627 from 0.001 to 0.01, seems like the docs weren't updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants