Skip to content
This repository has been archived by the owner on Jan 20, 2021. It is now read-only.

sometimes won't return into original position #11

Open
smarek opened this issue Dec 7, 2014 · 5 comments
Open

sometimes won't return into original position #11

smarek opened this issue Dec 7, 2014 · 5 comments

Comments

@smarek
Copy link

smarek commented Dec 7, 2014

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

@yairEO
Copy link
Owner

yairEO commented Dec 7, 2014

what browser and computer was this tried with?

@smarek
Copy link
Author

smarek commented Dec 7, 2014

I've tried that with OSX Chrome and Chrome Canary (Beta build), Firefox and Safari. Has the issue everywhere.

@yairEO
Copy link
Owner

yairEO commented Dec 7, 2014

I've changed the code a bit, can you try now? also, do you use CSS3 transitions or normal javascript?

@smarek
Copy link
Author

smarek commented Dec 28, 2014

I tried but as #17 states, now it doesn't work at all.

@yairEO
Copy link
Owner

yairEO commented Dec 28, 2014

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants