vue-parallax-js icon indicating copy to clipboard operation
vue-parallax-js copied to clipboard

IE11 calculation not working

Open thelucre opened this issue 6 years ago • 0 comments

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

thelucre avatar Jul 25 '19 15:07 thelucre