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

fix(carousel): synchronize slides after scroll #1923

Merged
merged 2 commits into from
Mar 25, 2024

Conversation

alenaksu
Copy link
Collaborator

@alenaksu alenaksu commented Mar 13, 2024

Updates slides synchronization logic to fix the bug described in #1887.
Before these changes, the logic continuously monitored the viewport using IntersectionObserver. This update instead creates an observer only when scrolling ends. The obsever is then disconnected when the slides are updated.

fixes #1887

Copy link

vercel bot commented Mar 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
shoelace ✅ Ready (Inspect) Visit Preview Mar 13, 2024 6:33pm

@alenaksu alenaksu marked this pull request as ready for review March 14, 2024 09:15
Copy link
Member

@claviska claviska left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thanks for your continued effort to improve the carousel, @alenaksu!

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

Successfully merging this pull request may close these issues.

Carousel pagination not synced with active item when prefer-reduced-motion
2 participants