Skip to content

Layout broken in short viewport when changing scrollY #98

@MrGGTo

Description

@MrGGTo

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
react-sticky-box.Full.Page.Example.-.Google.Chrome.2023-12-04.13-55-39.mp4

Could this be fixed? Thanks, this is a useful library

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions