Skip to content

Sprites animate incorrectly when within a scaled element #46

@GavinJoyce

Description

@GavinJoyce

I'm not sure if this is a scenario that ember-animated should handle or not. If not, please let me know so that I can consider approaches other than making modifications to ember-animated.

I'm using ember-animated in ember-present. I'm applying a scale to slides based on the available viewport in order to maximise their size of the slide while maintaining a 16:9 aspect ratio. When a scale is applied, the animated sprites seem to move to incorrect positions:

with-scale

When I remove the scale, the sprites animate correctly:

without-scale

Here's a PR which contains a reproduction of the behaviour

scale

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions