Skip to content

Commit daa4e8a

Browse files
committed
Update logic.js
Fix #103
1 parent 2f230d9 commit daa4e8a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/module/logic.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ export class AboutFace {
4949

5050
// Create or update the about face indicator
5151
// updateAboutFaceIndicator(token, tokenDirection, distance, scale);
52+
const { w: width, h: height } = token;
5253
if (!token.aboutFaceIndicator || token.aboutFaceIndicator._destroyed) {
53-
const { w: width, h: height } = token;
5454
const container = new PIXI.Container({ name: "aboutFaceIndicator", width, height });
5555
container.name = "aboutFaceIndicator";
5656
container.width = width;
@@ -80,6 +80,8 @@ export class AboutFace {
8080
} else {
8181
let container = token.aboutFaceIndicator;
8282
let graphics = container.graphics;
83+
container.x = width / 2;
84+
container.y = height / 2;
8385
graphics.x = distance;
8486
graphics.scale.set(scale, scale);
8587
// update the rotation of the arrow

0 commit comments

Comments
 (0)