mirror of
https://github.com/wassname/phaser.git
synced 2026-08-17 11:23:42 +08:00
Input Handler working. Dragging, sliding, click detection, multi-touch. Appears to be an issue with bringToTop but it's most likely a problem with the swapChild function rather than Input.
This commit is contained in:
@@ -91,6 +91,17 @@ Phaser.World.prototype = {
|
||||
|
||||
},
|
||||
|
||||
bringToTop: function (child) {
|
||||
|
||||
if (child !== this._stage.last)
|
||||
{
|
||||
this.swapChildren(child, this._stage.last);
|
||||
}
|
||||
|
||||
return child;
|
||||
|
||||
},
|
||||
|
||||
swapChildren: function (child1, child2) {
|
||||
|
||||
if (child1 === child2 || !child1.parent || !child2.parent)
|
||||
|
||||
Reference in New Issue
Block a user