Scrolling Breaks with Dynamic Content and PermanentTrack
davidgolden opened this issue · 0 comments
What is the current behavior?
When permanentTrackY is enabled, while the scrollbar track reacts to changes in content size, the ability to scroll via mouse wheel or trackpad (i.e. not dragging the scrollbar) disappears.
Steps to reproduce it and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have extra dependencies other than react-scrollbars-custom
. Paste the link to your JSFiddle or CodeSandbox example below:
Here is a reproduction. You can comment out permanentTrackY to see the difference.
https://codesandbox.io/s/sharp-engelbart-fnc2e?file=/src/App.js
What is the expected behavior?
I would expect that the behavior would be the same as when permanentTrackY is disabled.
A little about versions:
I'm running OSX Catalina, tested on Chrome/Brave/Safari/Firefox. Tested in both latest React 16.x and 17, latest react-scrollbars-custom version. Don't know if it worked in a previous version or not.