gm0t / react-sticky-el

MIT License
251 stars 47 forks source link

Fix jumping when using boundaryElement while hideOnBoundaryHit = false #66

Closed capi1O closed 3 years ago

capi1O commented 3 years ago

This prevents "jumping" when using a boundaryElement is set: jumping occurs when element is set to fixed (it quickly gets hidden while fixed is applied).

This also prevent hiding element when reaching boundary when hideOnBoundaryHit is set to false (in my case it occurred despite position: relative set to the boundary element).

gm0t commented 3 years ago

@didrip thanks for your awesome job!