Skip to content

Commit

Permalink
screenX/Y => cachedScreenX/Y
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed Oct 8, 2024
1 parent 6986d41 commit 46ebd5c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions haxe/ui/backend/flixel/components/SparrowPlayer.hx
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ class SparrowPlayer extends Box implements IDataComponent {

private override function repositionChildren() {
super.repositionChildren();
sprite.x = this.screenX;
sprite.y = this.screenY;
sprite.x = this.cachedScreenX;
sprite.y = this.cachedScreenY;
}
}

Expand Down
4 changes: 2 additions & 2 deletions haxe/ui/backend/flixel/components/SpriteWrapper.hx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class SpriteWrapper extends Box {
private override function repositionChildren() {
super.repositionChildren();
if (sprite != null) {
sprite.x = spriteOffsetX + this.screenX;
sprite.y = spriteOffsetY + this.screenY;
sprite.x = spriteOffsetX + this.cachedScreenX;
sprite.y = spriteOffsetY + this.cachedScreenY;
}
}
}
Expand Down

0 comments on commit 46ebd5c

Please sign in to comment.