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

@egjs/react-infinitegrid moveto ? #542

Open
chenkuangkuang opened this issue Jun 7, 2023 · 3 comments
Open

@egjs/react-infinitegrid moveto ? #542

chenkuangkuang opened this issue Jun 7, 2023 · 3 comments
Assignees
Labels

Comments

@chenkuangkuang
Copy link

I noticed that other issues mention the moveto method, but @egjs/react-infinitegrid doesn't seem to have this method? Can anyone tell me why?

@malangfox malangfox self-assigned this Jun 7, 2023
@malangfox
Copy link
Contributor

Hello @chenkuangkuang.

moveTo is a method that was supported in Infinitegrid v3.
As it was removed in Infinitegrid v4, you can implement the same behavior using scroll on the element.

@chenkuangkuang
Copy link
Author

@malangfox Hi, I would like to click on a category to jump to specific visible items. How can I do this? setCursors doesn't seem to work either

@malangfox
Copy link
Contributor

We suggest using scrollTo after saving the scroll position of the item you want.
This is a demo that moves the scroll position to a specific item.
You may consider using an implementation similar to the demo above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants