Skip to content

Commit 3969d6e

Browse files
committed
Updated JSDocs to cover situation in phaserjs#3858
1 parent 0a20245 commit 3969d6e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/gameobjects/container/Container.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ var Vector2 = require('../../math/Vector2');
4444
*
4545
* Containers can be enabled for input. Because they do not have a texture you need to provide a shape for them
4646
* to use as their hit area. Container children can also be enabled for input, independent of the Container.
47+
*
48+
* If input enabling a _child_ you should not set both the `origin` and a **negative** scale factor on the child,
49+
* or the input area will become misaligned.
4750
*
4851
* Containers can be given a physics body for either Arcade Physics, Impact Physics or Matter Physics. However,
4952
* if Container _children_ are enabled for physics you may get unexpected results, such as offset bodies,

0 commit comments

Comments
 (0)