Skip to content
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 calculation not working #28

Open
thelucre opened this issue Jul 25, 2019 · 0 comments
Open

IE11 calculation not working #28

thelucre opened this issue Jul 25, 2019 · 0 comments

Comments

@thelucre
Copy link

Expected:
Parallax translation to work in IE11

Actual:
No transform style is set to bound elements in IE11. Tested in Browserstack.

Cause:
IE11 defaults marginTop to auto, so parseInt(n.marginTop) return NaN

Short term fix:
Explicitly set margin-top styles to a number value on any elements using the directive to get a proper calculation.

See:
https://github.com/jsnanigans/vue-parallax-js/blob/master/src/vue-parallax-js.js#L64
and
https://github.com/jsnanigans/vue-parallax-js/blob/master/src/vue-parallax-js.js#L81

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

No branches or pull requests

1 participant