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

Sticky if scrolled down and refreshed not working #9

Closed
berndschimmer opened this issue Jan 9, 2017 · 5 comments
Closed

Sticky if scrolled down and refreshed not working #9

berndschimmer opened this issue Jan 9, 2017 · 5 comments
Labels

Comments

@berndschimmer
Copy link

Go to https://rgalus.github.io/sticky-js/ and scroll down so that the sticky elements are triggered.
Refresh so that the browser has the position as before and see that the sticky elements are not sticky.

Is there a fast solution?

@rgalus
Copy link
Owner

rgalus commented Jan 9, 2017

What browser/platform do you use?

@berndschimmer
Copy link
Author

I tested it chrome on mac and firefox to confirm. Now it works on your demo page. So case closed for you.
But: i use your plugin on a preact js page and there it doesn't work. I investigate a little further and if i find the solution, i will post i here. Thx again for the response!

@berndschimmer
Copy link
Author

OK, i "fixed" it for chrome and firefox. I called new Sticky('.elment') to early. It needs to be in componentdidmount.
But :-) the same error as initially described is on your page with Internet Explorer 9 and 10 and Edge 14.
On IE 11 after reloading a second time the sticky element is also gone.

@berndschimmer berndschimmer reopened this Jan 9, 2017
@rgalus rgalus added the bug label Jan 30, 2017
@atomeon
Copy link

atomeon commented Mar 17, 2017

the bug is still actual, sad, would be a best simple sticky-plugin if not this bug =(

@rgalus rgalus closed this as completed in b73391e Apr 19, 2017
@bernd-protofy
Copy link

Sorry for the late answer. THX!!!!!

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

No branches or pull requests

4 participants