Skip to content

Commit 7918f09

Browse files
authored
Merge pull request phaserjs#3937 from goldfire/goldfire-patch-1
Use correct frame name in pixel perfect hit test
2 parents f46bd2c + e4ccc8e commit 7918f09

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/input/CreatePixelPerfectHandler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var CreatePixelPerfectHandler = function (textureManager, alphaTolerance)
2121
{
2222
return function (hitArea, x, y, gameObject)
2323
{
24-
var alpha = textureManager.getPixelAlpha(x, y, gameObject.texture.key, gameObject.frame.key);
24+
var alpha = textureManager.getPixelAlpha(x, y, gameObject.texture.key, gameObject.frame.name);
2525

2626
return (alpha && alpha >= alphaTolerance);
2727
};

0 commit comments

Comments
 (0)