Skip to content

Commit cb29497

Browse files
committed
Swapped displayOrigin setters. Fix phaserjs#3084.
1 parent cae8e55 commit cb29497

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

v3/src/gameobjects/components/Origin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var Origin = {
2121
set: function (value)
2222
{
2323
this._displayOriginX = value;
24-
this.originX = (value === 0) ? 0 : this.width / value;
24+
this.originX = (value === 0) ? 0 : value / this.width;
2525
}
2626

2727
},
@@ -36,7 +36,7 @@ var Origin = {
3636
set: function (value)
3737
{
3838
this._displayOriginY = value;
39-
this.originY = (value === 0) ? 0 : this.height / value;
39+
this.originY = (value === 0) ? 0 : value / this.height;
4040
}
4141

4242
},

0 commit comments

Comments
 (0)