Skip to content

Commit fb8da7a

Browse files
committed
Fixed transform look-up.
1 parent 8d8ca49 commit fb8da7a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/input/InputHandler.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -774,8 +774,8 @@ Phaser.InputHandler.prototype = {
774774
!this.sprite ||
775775
!this.sprite.parent ||
776776
!this.sprite.visible ||
777-
this.sprite.worldScaleX === 0 ||
778-
this.sprite.worldScaleY === 0)
777+
this.sprite.transform.worldScaleX === 0 ||
778+
this.sprite.transform.worldScaleY === 0)
779779
{
780780
return false;
781781
}
@@ -888,7 +888,7 @@ Phaser.InputHandler.prototype = {
888888
return;
889889
}
890890

891-
if (!this.enabled || !this.sprite.visible || !this.sprite.parent.visible)
891+
if (!this.enabled || !this.sprite.visible)
892892
{
893893
this._pointerOutHandler(pointer);
894894
return false;

0 commit comments

Comments
 (0)