Skip to content

Commit 64000df

Browse files
committed
Fixed small boolean check error.
1 parent f78a527 commit 64000df

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/input/InputHandler.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ Phaser.InputHandler.prototype = {
655655
{
656656
if (typeof fastTest === 'undefined') { fastTest = false; }
657657

658-
if (fastTest && this.pixelPerfectClick)
658+
if (!fastTest && this.pixelPerfectClick)
659659
{
660660
return this.checkPixel(this._tempPoint.x, this._tempPoint.y);
661661
}
@@ -690,7 +690,7 @@ Phaser.InputHandler.prototype = {
690690
{
691691
if (typeof fastTest === 'undefined') { fastTest = false; }
692692

693-
if (fastTest && this.pixelPerfectOver)
693+
if (!fastTest && this.pixelPerfectOver)
694694
{
695695
return this.checkPixel(this._tempPoint.x, this._tempPoint.y);
696696
}

0 commit comments

Comments
 (0)