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

Return to the current element if scrolling is not enough. #515

Open
OpachiEg opened this issue Dec 20, 2023 · 5 comments
Open

Return to the current element if scrolling is not enough. #515

OpachiEg opened this issue Dec 20, 2023 · 5 comments

Comments

@OpachiEg
Copy link

I'm trying to create a TikTok feed page, but when scrolling it always scrolls to the next element.
Is it possible to somehow implement this functionality?

@bimix
Copy link

bimix commented Jan 3, 2024

this is a such big issue and finally found someone who asked the question. However, strange enough nobody has answered.

@dohooo
Copy link
Owner

dohooo commented Jan 13, 2024

I'm not quite sure I get it. Can you show me an example for this?

@OpachiEg
Copy link
Author

example.mp4

Here's an example from Youtube Shorts.
If the scrolling is small, then it returns to the current element.
But in the case of a carousel, it always goes either forward or backward, even if the scrolling is minimal.

@Nitrammets
Copy link

Did anybody find a solution to this?

@nmassey
Copy link
Contributor

nmassey commented May 4, 2024

I've got a proposed fix in #596 . See the screen recordings in that PR to see what the new behavior is. I've been using this fix in production for a couple of months, and this seems to work well for my purposes.

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

5 participants