Skip to content

Commit 829f33a

Browse files
committed
Input area should use realWidth and realHeight
1 parent c5ad6e6 commit 829f33a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

v3/src/input/local/inc/SetHitAreaFromTexture.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ var SetHitAreaFromTexture = function (gameObjects, callback)
2121

2222
if (frame)
2323
{
24-
width = frame.width;
25-
height = frame.height;
24+
width = frame.realWidth;
25+
height = frame.realHeight;
2626
}
2727
else if (gameObject.width)
2828
{

0 commit comments

Comments
 (0)