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

Get refs from scrollable elements & prevent memory leaks #81

Open
alioshr opened this issue Nov 21, 2022 · 1 comment
Open

Get refs from scrollable elements & prevent memory leaks #81

alioshr opened this issue Nov 21, 2022 · 1 comment

Comments

@alioshr
Copy link

alioshr commented Nov 21, 2022

There should be a way of getting the refs of the scrollable elements used within the ScrollPanel elements.

I need to investigate why it is not possible, but I have tried with callbacks and regular refs. I assume that this is being kidnappted internally, to make the feature work.

Another thing that I have noticed is that after a while the scroll sync get chunky. I guess that is a certain point of time both elements start listening to each other at the same time, which makes the scroll chunky.

I will post more here during this week to enhance my findings, as I will need to reproduce this on public code.

@wbolduc
Copy link

wbolduc commented Nov 7, 2023

This exact issue causes problems when you're using other scroll related libraries like react-virtual to visualize items on your synced list

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