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

Snapping specific elements within the container/target #88

Open
skittlesaur opened this issue Aug 27, 2024 · 3 comments
Open

Snapping specific elements within the container/target #88

skittlesaur opened this issue Aug 27, 2024 · 3 comments

Comments

@skittlesaur
Copy link

Is there a way to make the scroll snap work for deeply nested children with specific id's or data attributes instead of direct children to the container?

@lucafalasco
Copy link
Owner

lucafalasco commented Sep 2, 2024

Hi @skittlesaur, no, the library currently only takes into account the main container dimensions and the snap destination coordinates to calculate the snapping point.

@skittlesaur
Copy link
Author

Hi @skittlesaur, no, the library currently only takes into account the main container dimensions and the snap destination coordinates to calculate the snapping point.

Thank you. But is there a way to use this library like react-use-scroll-snap without overflow auto?

@lucafalasco
Copy link
Owner

I'm not familiar with that library so I'm not sure what you mean exactly, though I'm happy to help with your scenario if you can provide a codesandbox or similar with the expected behaviour

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