Skip to content

Commit 1467eb4

Browse files
committed
A Group with inputEnableChildren set would re-start the Input Handler on a Sprite, even if that handler had been disabled previously.
1 parent 94498fc commit 1467eb4

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,11 +317,11 @@ You can read all about the philosophy behind Lazer [here](http://phaser.io/news/
317317

318318
* TypeScript definitions fixes and updates (thanks )
319319
* Docs typo fixes (thanks )
320-
*
320+
* The InputHandler.flagged property has been removed. It was never used internally, or exposed via the API, so was just overhead.
321321

322322
### Bug Fixes
323323

324-
*
324+
* A Group with `inputEnableChildren` set would re-start the Input Handler on a Sprite, even if that handler had been disabled previously.
325325
*
326326
*
327327

src/core/Group.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ Phaser.Group.prototype.add = function (child, silent, index) {
389389
this.addToHash(child);
390390
}
391391

392-
if (this.inputEnableChildren && !child.inputEnabled)
392+
if (this.inputEnableChildren && (!child.input || child.inputEnabled))
393393
{
394394
child.inputEnabled = true;
395395
}

0 commit comments

Comments
 (0)