react-custom-scrollbars icon indicating copy to clipboard operation
react-custom-scrollbars copied to clipboard

How to sync two scrollbars in two different react class components?

Open jackvik opened this issue 3 years ago • 2 comments

jackvik avatar Jul 25 '20 17:07 jackvik

Hey! I think you should sync scrollTop value of both components. Try to use onScroll event and just set scrollTop using ref.

sakhnyuk avatar Jul 30 '20 14:07 sakhnyuk

Try to use onScroll event and just set scrollTop using ref.

It's very slow with a mouse wheel. Do you know what ?

dokurocker avatar Sep 14 '20 01:09 dokurocker