Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Active page changes on container click (Firefox only) #22

Open
nctay opened this issue Nov 29, 2023 · 2 comments
Open

Active page changes on container click (Firefox only) #22

nctay opened this issue Nov 29, 2023 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@nctay
Copy link

nctay commented Nov 29, 2023

2023-11-29.15.32.05.mov

Active page changes to previous when scrollable container clicked and scrolled to end.

Replicated on storyboook example.

OS: MacOS 13.5.3
Browser: Firefox 120.0 (last ver)

@nctay
Copy link
Author

nctay commented Nov 29, 2023

@richardscarrott issue kinda resolved.

The last li item should have scroll-snap-align: 'end' (if it has isSnapPoint prop), then Firefox handles it correctly. I think it should be noted in docs.

@richardscarrott
Copy link
Owner

That's a strange one, must be a quirk of native scroll snap in FF. Only seems to happen when the last page is short. Thanks for sharing the fix. We can add a Q&A-style troubleshooting section to the docs mentioning this.

@richardscarrott richardscarrott added the documentation Improvements or additions to documentation label Oct 9, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants