We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cae8e55 commit cb29497Copy full SHA for cb29497
1 file changed
v3/src/gameobjects/components/Origin.js
@@ -21,7 +21,7 @@ var Origin = {
21
set: function (value)
22
{
23
this._displayOriginX = value;
24
- this.originX = (value === 0) ? 0 : this.width / value;
+ this.originX = (value === 0) ? 0 : value / this.width;
25
}
26
27
},
@@ -36,7 +36,7 @@ var Origin = {
36
37
38
this._displayOriginY = value;
39
- this.originY = (value === 0) ? 0 : this.height / value;
+ this.originY = (value === 0) ? 0 : value / this.height;
40
41
42
0 commit comments