On gridless maps, always start measuring from the tokens center

This commit is contained in:
Manuel Vögele
2021-02-05 11:46:16 +01:00
parent f1542b7789
commit 74c7d74c5a
3 changed files with 10 additions and 2 deletions
+2 -1
View File
@@ -81,7 +81,8 @@ export function onMouseMove(event) {
// Extract event data
const mt = event._measureTime || 0;
const { destination, originalEvent } = event.data;
const originalEvent = event.data.originalEvent;
const destination = {x: event.data.destination.x + this.rulerOffset.x, y: event.data.destination.y + this.rulerOffset.y}
// Hide any existing Token HUD
canvas.hud.token.clear();