File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments