Merge pull request #162 from beeglebug/button

Button now goes back to over state when setFrames used in action
This commit is contained in:
Richard Davey
2013-11-03 18:39:54 -08:00
+2 -2
View File
@@ -253,7 +253,7 @@ Phaser.Button.prototype.setFrames = function (overFrame, outFrame, downFrame) {
{
this._onDownFrameName = downFrame;
if (this.input.pointerOver())
if (this.input.pointerDown())
{
this.frameName = downFrame;
}
@@ -262,7 +262,7 @@ Phaser.Button.prototype.setFrames = function (overFrame, outFrame, downFrame) {
{
this._onDownFrameID = downFrame;
if (this.input.pointerOver())
if (this.input.pointerDown())
{
this.frame = downFrame;
}