Closed ArseniyShestakov closed 6 years ago
Screenshots.
On page load: After scrolling page down and scrolling up rapidly:
@ArseniyShestakov thanks for reporting this, I've managed to reproduce it. I'll try to figure out why is that happening.
@ArseniyShestakov the bug should be fixed now, can you please check the latest version (2.1.5
) and let me know if it works for you? Thanks.
Thank you so much with rapid fix. I'll test it immediately!
I could confirm problem with displacement is fixed, tested in Chrome, Firefox and Edge.
Unfortunately problem with spacer overlapping is become worse. Looks like half time when hc-sticky is active spacer making elements inaccessible for clicks. You should be easily able to reproduce it on same jsfiddle linked in original issue (it's use latest HC-sticky now). I'll for now hackfix with z-index on website I working on, but proper fix could be nice to have.
Thanks again for your work!
Hey @ArseniyShestakov, I missed your last comment. The spacer stack order is now handled automatically.
Thanks again for fixing it!
Two issues occur when height of sticked div is bigger than height of the screen:
z-index: -1
for spacer, but I not sure if it's good idea.I find that issue while trying to use HC-Sticky on this website. If you play with browser window size (it's happen more often on small resolutions) and try to scroll page down and up left panel with filters will sometimes end up too low or too high relatively to the div it's sticked to.
It's harder to reproduce bug on lightweight page, but still possible so I made standalone reproduction. Yet in this case block could only end up too low, but it's never end up covering header: https://jsfiddle.net/ArseniyShestakov/3ypjufuL/
Reproduction:
Tested in both latest stable Firefox and Chromium.