react-sticky-box
react-sticky-box copied to clipboard
Layout broken in short viewport when changing scrollY
I noticed a layout bug with the sticky box. The sticky box did not detect the scrollY change, breaking the layout as shown in the preview.
To reproduce this:
- Resize the window to let the sticky box's height > viewport's height.
- scroll above the sticky box (make sure to scroll out of the sticky zone)
- click on a anchor tag to trigger a change in
scrollY
https://github.com/codecks-io/react-sticky-box/assets/56320644/ae3662e8-6c6b-4005-8f7a-a4479593bf78
Could this be fixed? Thanks, this is a useful library