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

Incorrect flip behaviour in CANVAS mode #4636

Closed
jronn opened this issue Jul 3, 2019 · 1 comment
Closed

Incorrect flip behaviour in CANVAS mode #4636

jronn opened this issue Jul 3, 2019 · 1 comment

Comments

@jronn
Copy link

jronn commented Jul 3, 2019

Version

Phaser Version: v3.18.1

Operating system: macOS Mojave 0.14.5

Browser: Chrome 75.0.3770.100 (but does not seem to be browser-specific)

Description

When setting the flip of a sprite that has a non-centered origin along the flip axis, the position of the sprite changes in CANVAS mode (while in WEBGL mode the image is simply rendered mirrored, which I would assume is the correct behaviour).

I.e, display of flipped sprite is inconsistent depending on if you're in CANVAS / WEBGL mode.

Example Test Code

https://codepen.io/anon/pen/dBeBPE

@photonstorm
Copy link
Collaborator

Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.

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

2 participants