From 3969d6e45a0c8e43825ee9822818f877c9eef818 Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Fri, 11 Sep 2020 10:08:22 +0100 Subject: [PATCH] Updated JSDocs to cover situation in #3858 --- src/gameobjects/container/Container.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gameobjects/container/Container.js b/src/gameobjects/container/Container.js index 5586bd936..42f865e74 100644 --- a/src/gameobjects/container/Container.js +++ b/src/gameobjects/container/Container.js @@ -44,6 +44,9 @@ var Vector2 = require('../../math/Vector2'); * * Containers can be enabled for input. Because they do not have a texture you need to provide a shape for them * to use as their hit area. Container children can also be enabled for input, independent of the Container. + * + * If input enabling a _child_ you should not set both the `origin` and a **negative** scale factor on the child, + * or the input area will become misaligned. * * Containers can be given a physics body for either Arcade Physics, Impact Physics or Matter Physics. However, * if Container _children_ are enabled for physics you may get unexpected results, such as offset bodies,