Skip to content

Commit 4a407f1

Browse files
committed
Button.onInputUpHandler wouldn't set an upFrame for a frame ID of zero, made the check more strict.
1 parent 46d5069 commit 4a407f1

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ Bug Fixes
6666
* Fixed Tile callback check in Arcade Physics (fix #562)
6767
* Removed the examples build script from the Gruntfile (fix #592)
6868
* The P2 World wouldn't clear down fully on a State change, now properly clears out contacts, resets the bitmask, etc.
69+
* Button.onInputUpHandler wouldn't set an upFrame for a frame ID of zero, made the check more strict.
70+
6971

7072
Updated:
7173

src/gameobjects/Button.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ Phaser.Button.prototype.onInputUpHandler = function (sprite, pointer, isOver) {
557557
}
558558
else
559559
{
560-
if (this._onUpFrameName || this._onUpFrameID)
560+
if (this._onUpFrameName !== null || this._onUpFrameID !== null)
561561
{
562562
this.setState(4);
563563
}

0 commit comments

Comments
 (0)