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

Scrolling Breaks with Dynamic Content and PermanentTrack #171

Open
davidgolden opened this issue Mar 26, 2021 · 0 comments
Open

Scrolling Breaks with Dynamic Content and PermanentTrack #171

davidgolden opened this issue Mar 26, 2021 · 0 comments

Comments

@davidgolden
Copy link

davidgolden commented Mar 26, 2021

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.

kiliancs added a commit to kiliancs/react-scrollbars-custom that referenced this issue Oct 13, 2023
Addresses xobotyi#171.

Setting the `style` attribute on an element violates stricter CSP and
requires a policy of `style-src 'unsafe-inline'`. Setting each style in
the style property of the element resolves this issue.
kiliancs added a commit to kiliancs/react-scrollbars-custom that referenced this issue Oct 13, 2023
Addresses xobotyi#171.

Setting the `style` attribute on an element violates stricter CSP and
requires a policy of `style-src 'unsafe-inline'`. Setting each style in
the style property of the element resolves this issue.
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

1 participant