switch to reactive formatter for zoom

This commit is contained in:
David Tsay 2024-06-06 16:17:12 -07:00
parent 0254367cd5
commit 0cbdbc6807

View File

@ -194,8 +194,8 @@ export default {
this.isZooming = false;
} else {
this.isZooming = true;
this.formattedBounds.start = this.timeFormatter.format(bounds.start);
this.formattedBounds.end = this.timeFormatter.format(bounds.end);
this.formattedBounds.start = this.timeSystemFormatter.format(bounds.start);
this.formattedBounds.end = this.timeSystemFormatter.format(bounds.end);
}
},
endZoom(bounds) {
@ -207,8 +207,6 @@ export default {
}
},
setViewBounds(bounds) {
// this.formattedBounds.start = this.timeFormatter.format(bounds.start);
// this.formattedBounds.end = this.timeFormatter.format(bounds.end);
this.viewBounds.start = bounds.start;
this.viewBounds.end = bounds.end;
}