Cache the output of SpeedProvider.getRanges during a drag to increase speed provider performance

This commit is contained in:
Manuel Vögele
2021-04-29 12:40:17 +02:00
parent 4671e6de51
commit 1acc012d65
3 changed files with 8 additions and 2 deletions
+1
View File
@@ -14,6 +14,7 @@ export class DragRulerRuler extends Ruler {
super.clear();
this.previousWaypoints = [];
this.previousLabels.removeChildren().forEach(c => c.destroy());
this.dragRulerRanges = undefined;
}
async moveToken(event) {