After moving a token only end the measurement if no new token is being dragged
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
## In development
|
## In development
|
||||||
### Bugfixes
|
### Bugfixes
|
||||||
- Greatly increased the performance when playing on huge maps and when moving many tokens at once.
|
- Greatly increased the performance when playing on huge maps and when moving many tokens at once.
|
||||||
|
- When starting to drag a new token while the previous one is still moving the ruler won't dissappear anymore when the previous token arrives at it's destination.
|
||||||
|
|
||||||
|
|
||||||
## 1.5.4
|
## 1.5.4
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ export async function moveTokens(draggedToken, selectedTokens) {
|
|||||||
await animateTokens.call(this, selectedTokens, draggedToken, rays, wasPaused);
|
await animateTokens.call(this, selectedTokens, draggedToken, rays, wasPaused);
|
||||||
|
|
||||||
// Once all animations are complete we can clear the ruler
|
// Once all animations are complete we can clear the ruler
|
||||||
|
if (this.draggedToken.id === draggedToken.id)
|
||||||
this._endMeasurement();
|
this._endMeasurement();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user