Cancel scheudled measurements then the ruler is being cleared

This commit is contained in:
Manuel Vögele
2021-07-30 12:40:32 +02:00
parent e1265ad6fb
commit 461e1d0818
2 changed files with 9 additions and 4 deletions
+2 -1
View File
@@ -1,4 +1,4 @@
import {measure} from "./foundry_imports.js"
import {cancelScheduledMeasurement, measure} from "./foundry_imports.js"
import {getMovementHistory} from "./movement_tracking.js";
import {settingsKey} from "./settings.js";
import {getSnapPointForEntity, setSnapParameterOnOptions} from "./util.js";
@@ -16,6 +16,7 @@ export class DragRulerRuler extends Ruler {
this.previousWaypoints = [];
this.previousLabels.removeChildren().forEach(c => c.destroy());
this.dragRulerRanges = undefined;
cancelScheduledMeasurement.call(this);
}
async moveToken(event) {