react-sticky-box icon indicating copy to clipboard operation
react-sticky-box copied to clipboard

Layout broken in short viewport when changing scrollY

Open MrGGTo opened this issue 2 years ago • 0 comments

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:

  1. Resize the window to let the sticky box's height > viewport's height.
  2. scroll above the sticky box (make sure to scroll out of the sticky zone)
  3. 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

MrGGTo avatar Dec 04 '23 06:12 MrGGTo