Skip to content

Commit b9f7052

Browse files
committed
Merge branch 'master' of https://github.com/photonstorm/phaser
2 parents 4b41c64 + 7fc6424 commit b9f7052

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/input/InputPlugin.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2101,6 +2101,7 @@ var InputPlugin = new Class({
21012101
var cursor = false;
21022102
var useHandCursor = false;
21032103
var pixelPerfect = false;
2104+
var customHitArea = true;
21042105

21052106
// Config object?
21062107
if (IsPlainObject(shape))
@@ -2127,6 +2128,7 @@ var InputPlugin = new Class({
21272128
if (!shape || !callback)
21282129
{
21292130
this.setHitAreaFromTexture(gameObjects);
2131+
customHitArea = false;
21302132
}
21312133
}
21322134
else if (typeof shape === 'function' && !callback)
@@ -2147,7 +2149,7 @@ var InputPlugin = new Class({
21472149

21482150
var io = (!gameObject.input) ? CreateInteractiveObject(gameObject, shape, callback) : gameObject.input;
21492151

2150-
io.customHitArea = true;
2152+
io.customHitArea = customHitArea;
21512153
io.dropZone = dropZone;
21522154
io.cursor = (useHandCursor) ? 'pointer' : cursor;
21532155

0 commit comments

Comments
 (0)