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

Dragging sprites that are fixed to camera is broken... #297

Closed
davvidbaker opened this issue Jul 26, 2017 · 0 comments · Fixed by #300
Closed

Dragging sprites that are fixed to camera is broken... #297

davvidbaker opened this issue Jul 26, 2017 · 0 comments · Fixed by #300
Assignees
Milestone

Comments

@davvidbaker
Copy link
Contributor

This Issue is about dragging sprites that are fixed to camera. It looks like this was broken in PR #111.

It was probably overlooked because it only happens when the camera is not positioned at x = 0.

  • Phaser version: 2.7.6+
  • Live example: https://codepen.io/davvidbaker/pen/NvPEeR?editors=0010
  • What should happen: The x-coordinate of the sprite should drag according to the movement of the cursor.
  • What happens instead: The x-coordinate of the camera is added to the x-coordinate of the sprite being dragged.

drag

I am working on a pull request that should be submitted later tonight.

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

Successfully merging a pull request may close this issue.

2 participants