After moving a token only end the measurement if no new token is being dragged

This commit is contained in:
Manuel Vögele
2021-04-27 21:17:28 +02:00
parent 2691720090
commit ba8ab9d473
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -37,7 +37,8 @@ export async function moveTokens(draggedToken, selectedTokens) {
await animateTokens.call(this, selectedTokens, draggedToken, rays, wasPaused);
// Once all animations are complete we can clear the ruler
this._endMeasurement();
if (this.draggedToken.id === draggedToken.id)
this._endMeasurement();
}
// This is a modified version code extracted from Ruler.moveToken from foundry 0.7.9