sometimes won't return into original position
smarek opened this issue · 5 comments
hi, first, thank you for the amazing library, it works pretty well.
however I found one problem, when scrolling fast, element will not return to position 0 but will stay in some random position scrolled down (sometimes it's few pixels, sometimes it's over 300px)
I use simple configuration:
$(".float_element").stickyfloat({duration: 0, offsetY: 180});
.float_element {
position: absolute;
width: 100%;
background-color: white;
padding: 10px 0 10px 0;
z-index: 100;
border-bottom: 1px solid #707070;
}
I've tried to change duration, to tens of milliseconds in hope animation/delay will handle it differently, but issue remained same.
Also tried to use ID instead of CLASS, didn't have any effect
what browser and computer was this tried with?
I've tried that with OSX Chrome and Chrome Canary (Beta build), Firefox and Safari. Has the issue everywhere.
I've changed the code a bit, can you try now? also, do you use CSS3 transitions or normal javascript?
I don't have a MAC or access to a MAC, I can only run a VM mac version with older safari, I'll try to debug things there