fix #154 Button now goes back to over state when setFrames used in action

This commit is contained in:
beeglebug
2013-11-02 11:24:00 +00:00
parent 903c2e73fa
commit 3227918c57
+2 -2
View File
@@ -197,7 +197,7 @@ Phaser.Button.prototype.setFrames = function (overFrame, outFrame, downFrame) {
{
this._onDownFrameName = downFrame;
if (this.input.pointerOver())
if (this.input.pointerDown())
{
this.frameName = downFrame;
}
@@ -206,7 +206,7 @@ Phaser.Button.prototype.setFrames = function (overFrame, outFrame, downFrame) {
{
this._onDownFrameID = downFrame;
if (this.input.pointerOver())
if (this.input.pointerDown())
{
this.frame = downFrame;
}