-
Notifications
You must be signed in to change notification settings - Fork 838
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IE11 issue #50
Comments
I made a more efficient hack-fix by extrapolating those callbacks in
|
Having the same issue. When scrolled to top of page on IE11, the images have visibility: hidden. Once you scroll 1 pixel it gets visibility: visible. |
Building on what langdonx said about the double work, you can use a detect ie function like so:
|
I have exactly the same problem, but I don't know where to put the code :( Please help. |
i'm closing this issue due to inactivity assuming it has been solved in recent versions of the library and/or the browser. |
After some troubleshooting, I really have no explanation for this, but wanted to file the issue anyway in case someone else had the same trouble.
In IE11 only (Chrome/Firefox are fine) I noticed that the parallax images were hidden until the page was scrolled down further than where they should have appeared.
In troubleshooting, I found that in
render()
,parallax.winHeight
was always zero, skewing the math. Further troubleshooting revealed that while the setup function was being called, $(win).on('load') would never execute due to some order of operations issue(?) in IE.I moved the majority of the code (the event binding) from
setup()
to the Constructor and things started working again.I added additional logging to try and further reduce what was happening, which led me to assume the order of things differs from Chrome to IE11.
Chrome/Firefox/Opera:
setup()
is called$(window).on('load')
from the Constructor is fired$(window).on('load')
fromsetup()
is firedIE11:
$(window).on('load')
from the Constructor is firedsetup()
is calledIE11 never fires the load events from
setup()
.It's strange because your demo site works fine and I have yet to figure out how my site differs.
I'll update when my site is live to provide an example. For now, I've just moved the load logic to the Constructor.
The text was updated successfully, but these errors were encountered: