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

Svelte spring store continuously adding values when switching tabs #9141

Open
eriksachse opened this issue Aug 24, 2023 · 3 comments
Open

Svelte spring store continuously adding values when switching tabs #9141

eriksachse opened this issue Aug 24, 2023 · 3 comments

Comments

@eriksachse
Copy link

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

@PuruVJ
Copy link
Collaborator

PuruVJ commented Aug 24, 2023

Can confirm, I've seen this as well

@Prinzhorn
Copy link
Contributor

Prinzhorn commented Aug 24, 2023

@JuchokJuk
Copy link

My little workaround #7010 (comment)

@PuruVJ PuruVJ mentioned this issue May 9, 2024
8 tasks
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

No branches or pull requests

4 participants