Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

IE11 calculation not working #28

Open
@thelucre

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /