egjs-infinitegrid icon indicating copy to clipboard operation
egjs-infinitegrid copied to clipboard

@egjs/react-infinitegrid moveto ?

Open chenkuangkuang opened this issue 1 year ago • 3 comments

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?

chenkuangkuang avatar Jun 07 '23 01:06 chenkuangkuang

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.

malangfox avatar Jun 07 '23 05:06 malangfox

@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

chenkuangkuang avatar Jun 13 '23 09:06 chenkuangkuang

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.

malangfox avatar Nov 16 '23 21:11 malangfox