-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Svelte spring store continuously adding values when switching tabs #9141
Comments
Can confirm, I've seen this as well |
Related / duplicate #7010 (via https://github.com/sveltejs/svelte/issues?q=is:issue is:open spring tab) |
My little workaround #7010 (comment) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When a spring animation is in progress and the user switches tabs in Chrome, an unexpected behavior occurs where the spring value is continuously applied to the associated element. Subsequently, upon returning to the original page, the spring animation plays back at an accelerated pace. For visual reference, I have attached a video demonstrating this issue.
Reproduction
https://svelte.dev/repl/6807679be5754699814ba39af6c6c9be?version=4.2.0
Screen.Recording.2023-08-23.at.13.30.38.mov
Logs
No response
System Info
System: OS: macOS 13.4 CPU: (8) arm64 Apple M1 Pro Memory: 181.75 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 16.16.0 - /usr/local/bin/node Yarn: 1.22.19 - /opt/homebrew/bin/yarn npm: 8.11.0 - /usr/local/bin/npm pnpm: 7.17.0 - ~/Library/pnpm/pnpm Browsers: Chrome: 116.0.5845.110 Edge: 114.0.1823.55 Safari: 16.5
Severity
annoyance
The text was updated successfully, but these errors were encountered: