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.
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
https://github.com/sveltejs/svelte/assets/24212703/b498dd41-2cb5-4ea3-b7e5-65484164adf2
Logs
No response
System Info
Severity
annoyance