-
I have a data list and corresponding markers on google map (imaging like yelp), what I am trying to do is when clicking the marker on google map, I want to scroll to that corresponding data piece on the virtuoso list, is there any way to achieve that? |
Beta Was this translation helpful? Give feedback.
Answered by
convers39
Jun 3, 2022
Replies: 1 comment
-
OK never mind I solved that ... Just track the current focused data piece with a global state, and give ref to each data piece, scrollIntoView when currentData.id == dataPiece.id. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
petyosi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OK never mind I solved that ...
Just track the current focused data piece with a global state, and give ref to each data piece, scrollIntoView when currentData.id == dataPiece.id.