fix (hopefully): piaying single point lines

This commit is contained in:
Ruben van de Ven 2022-05-24 17:21:20 +02:00
parent 38b8814d60
commit d55c5b5486

View file

@ -936,7 +936,7 @@ class Annotator extends EventTarget {
// setTimeout(() => this.playStroke(next_path, next_point), dt); // setTimeout(() => this.playStroke(next_path, next_point), dt);
} else if (this.strokes.length > path_i + 1) { } else if (this.strokes.length > path_i + 1) {
next_path = path_i + 1; next_path = path_i + 1;
next_point = 1; next_point = 0;
// use starttime instead of diff, to prevent floating // use starttime instead of diff, to prevent floating
} else { } else {
return [null, null]; return [null, null];