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

Switching Tab Synchronisation #57

Open
rehatkathuria opened this issue Aug 28, 2020 · 1 comment
Open

Switching Tab Synchronisation #57

rehatkathuria opened this issue Aug 28, 2020 · 1 comment

Comments

@rehatkathuria
Copy link

First of all, thank you for this wonderful component! Secondly, I've noticed an issue with Safari (Version 14.0 (16610.1.21.1.2)) and Chrome (Version 84.0.4147.135 (Official Build) (64-bit)) using 2.3.0.

I have two separate sections that contain a TextLoop each. One has a delay and the other doesn't. Their transition at first, works fine. However, when one switches to another tab, waits a dozen seconds or so and navigates back, their transitions end up synchronising and happen concurrently.

Steps to reproduce:

  1. Add two TextLoop components to a page.
  2. Set a delay on one of them to offset their transitions to be separated from each other.
  3. Navigate to another tab.
  4. Wait for a dozen seconds or so.
  5. Navigate back

Expected results:
I'm not sure if the intended behaviour is already that the timers should pause when one navigates away from the tab, but perhaps that would be a good solution?

Again, thank you for your work on this component; it's an absolute joy to use.

@radikris
Copy link

radikris commented Mar 24, 2022

Hey there @rehatkathuria !
I realised the same problem ,what solution did you find for it?
Please let me know!

PS: this package is awesome btw.

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

2 participants