Skip to content

Commit e135f13

Browse files
committed
Added missing properties needed for input to work
1 parent 7aae84a commit e135f13

1 file changed

Lines changed: 46 additions & 2 deletions

File tree

src/gameobjects/container/Container.js

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ var Container = new Class({
9191
this.position = 0;
9292

9393
/**
94-
* [description]
94+
* Internal Transform Matrix used for local space conversion.
9595
*
9696
* @name Phaser.GameObjects.Container#localTransform
9797
* @type {Phaser.GameObjects.Components.TransformMatrix}
@@ -100,7 +100,7 @@ var Container = new Class({
100100
this.localTransform = new Components.TransformMatrix();
101101

102102
/**
103-
* [description]
103+
* Internal temporary Transform Matrix used to avoid object creation.
104104
*
105105
* @name Phaser.GameObjects.Container#tempTransformMatrix
106106
* @type {Phaser.GameObjects.Components.TransformMatrix}
@@ -128,6 +128,50 @@ var Container = new Class({
128128
*/
129129
this._sortKey = '';
130130

131+
/**
132+
* Internal value to allow Containers to be used for input.
133+
* Do not change this value. It has no effect other than to break input.
134+
*
135+
* @name Phaser.GameObjects.Container#displayOriginX
136+
* @type {number}
137+
* @private
138+
* @since 3.4.0
139+
*/
140+
this.displayOriginX = 0;
141+
142+
/**
143+
* Internal value to allow Containers to be used for input.
144+
* Do not change this value. It has no effect other than to break input.
145+
*
146+
* @name Phaser.GameObjects.Container#displayOriginY
147+
* @type {number}
148+
* @private
149+
* @since 3.4.0
150+
*/
151+
this.displayOriginY = 0;
152+
153+
/**
154+
* Internal value to allow Containers to be used for input.
155+
* Do not change this value. It has no effect other than to break input.
156+
*
157+
* @name Phaser.GameObjects.Container#scrollFactorX
158+
* @type {number}
159+
* @private
160+
* @since 3.4.0
161+
*/
162+
this.scrollFactorX = 1;
163+
164+
/**
165+
* Internal value to allow Containers to be used for input.
166+
* Do not change this value. It has no effect other than to break input.
167+
*
168+
* @name Phaser.GameObjects.Container#scrollFactorY
169+
* @type {number}
170+
* @private
171+
* @since 3.4.0
172+
*/
173+
this.scrollFactorY = 1;
174+
131175
this.setPosition(x, y);
132176

133177
this.clearAlpha();

0 commit comments

Comments
 (0)