diff --git a/src/gameobjects/Button.js b/src/gameobjects/Button.js index 63bceb82..1dd1a331 100644 --- a/src/gameobjects/Button.js +++ b/src/gameobjects/Button.js @@ -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; }