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

startWhenVisible prop Bug #70

Open
NaveedGujral opened this issue Oct 24, 2024 · 1 comment
Open

startWhenVisible prop Bug #70

NaveedGujral opened this issue Oct 24, 2024 · 1 comment

Comments

@NaveedGujral
Copy link

NaveedGujral commented Oct 24, 2024

There seems to be a bug when
startWhenVisible=true and loop=true it seems like the component is mounting more than once causing it to look glitchy

I've attached screenshots of what i mean, it works fine without the startWhenVisible prop set to true.

I've had to use a intersection observer to mount and unmount the component instead if that helps.

Screenshot 2024-10-24 160709
Screenshot 2024-10-24 161117
Screenshot 2024-10-24 161140
Screenshot 2024-10-24 161151

@ssbeefeater
Copy link
Owner

I can't replicate this. Seems to work as expected. Do you use intersection observer as a replacement for startWhenVisible?

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