w11k / angular-sticky-things

Sticky Directive for Angular 2+

Home Page:https://w11k.github.io/angular-sticky-things

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sticky element unstick in wrong scroll position

kievsash opened this issue · comments

Hi!
Updated my angular to 8.3 and angular-sticky-thing to 1.2.1

Now marginTop works in a weird way: it catches sticky header good on scroll down. But then if I scroll up - my sticky element disappear only if scroll till parent top (scrollTop ==0) but not at position when it became sticky on scroll down (see gif)
sticky_issue

Pay attention when i scroll up - header disappears too late - when I have scrolled on top

Hi, same issue here.

sticky-issue

hello @kievsash @kanidjar thanks for using our library. fixed the issue in v.1.2.2. please take a look, and let me be informed if the issue still exists.

confirmed, issue fixed :)

thanks @tobiasatw11k

Thanks for fix.
Unfortunately I still observe it
Difference only that now I should not scoll to top to make sticky element disappear but still it dissappears incorrectly @kanidjar