fix: keyboard i/o now modify selected annotation

This commit is contained in:
Ruben van de Ven 2022-05-24 16:50:59 +02:00
parent 5a3c2a5368
commit 38b8814d60
1 changed files with 7 additions and 0 deletions

View File

@ -380,6 +380,13 @@ class Annotator extends EventTarget {
this.drawStrokePosition(this.inPointPosition, this.outPointPosition);
console.log([`${this.inPointTimeMs}`, `${this.outPointTimeMs}`])
this.slider.set([this.inPointTimeMs, this.outPointTimeMs]);
// console.log(this.selectedAnnotation);
if (this.selectedAnnotation) {
this.selectedAnnotation.t_in = in_ms;
this.selectedAnnotation.t_out = out_ms;
this.updateAnnotations(false);
}
}
resetInOutPoint() {