Skip to content

Commit 74af207

Browse files
committed
Swap to use worldScale instead of worldTransform.
1 parent 621673b commit 74af207

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

src/input/InputHandler.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -678,14 +678,14 @@ Phaser.InputHandler.prototype = {
678678
*/
679679
checkPointerDown: function (pointer, fastTest) {
680680

681-
if (!pointer.isDown ||
682-
!this.enabled ||
683-
!this.sprite ||
684-
!this.sprite.parent ||
685-
!this.sprite.visible ||
686-
!this.sprite.parent.visible ||
687-
this.sprite.worldTransform.a === 0 ||
688-
this.sprite.worldTransform.d === 0)
681+
if (!pointer.isDown ||
682+
!this.enabled ||
683+
!this.sprite ||
684+
!this.sprite.parent ||
685+
!this.sprite.visible ||
686+
!this.sprite.parent.visible |
687+
this.sprite.worldScale.x === 0 ||
688+
this.sprite.worldScale.y === 0)
689689
{
690690
return false;
691691
}
@@ -723,14 +723,14 @@ Phaser.InputHandler.prototype = {
723723
*/
724724
checkPointerOver: function (pointer, fastTest) {
725725

726-
if (!pointer.isDown ||
727-
!this.enabled ||
728-
!this.sprite ||
729-
!this.sprite.parent ||
730-
!this.sprite.visible ||
731-
!this.sprite.parent.visible ||
732-
this.sprite.worldTransform.a === 0 ||
733-
this.sprite.worldTransform.d === 0)
726+
if (!pointer.isDown ||
727+
!this.enabled ||
728+
!this.sprite ||
729+
!this.sprite.parent ||
730+
!this.sprite.visible ||
731+
!this.sprite.parent.visible |
732+
this.sprite.worldScale.x === 0 ||
733+
this.sprite.worldScale.y === 0)
734734
{
735735
return false;
736736
}

0 commit comments

Comments
 (0)