Skip to content

Conversation

afaikafk
Copy link
Contributor

Although the git diff might look a bit misleading (because the two branches share some pieces of code), all that is done is actually just change the order of the branches, so that displayObject is first checked if it's an intance of a Phaser.TileSprite (if so execute it's branch which remained unmodified), and if it isn't a Phaser.TileSprite, check if it's an instance of PIXI.Sprite (and do the same, code unchanged within the branch).
I guess the issue happened because Phaser.TileSprite is a subclass of PIXI.Sprite, so it got catched in the if check.

@photonstorm
Copy link
Collaborator

Well spotted, thanks.

photonstorm added a commit that referenced this pull request Feb 3, 2015
fix #1551 - detect mouseup on tilesprites
@photonstorm photonstorm merged commit a2854d2 into phaserjs:dev Feb 3, 2015
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 this pull request may close these issues.

2 participants