Only change video frame on zooming if video is present
Test: Move around the trace without a video and make sure there are no errors Change-Id: Ia87e97c7d731fc28aa3f8c9d4681db9b75bb6ad6
This commit is contained in:
@@ -553,9 +553,15 @@ export default {
|
|||||||
this.cropIntent = cropIntent;
|
this.cropIntent = cropIntent;
|
||||||
},
|
},
|
||||||
changeVideoTimestamp(ts) {
|
changeVideoTimestamp(ts) {
|
||||||
|
if (!this.$refs.video) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.$refs.video.selectFrameAtTime(ts);
|
this.$refs.video.selectFrameAtTime(ts);
|
||||||
},
|
},
|
||||||
resetVideoTimestamp() {
|
resetVideoTimestamp() {
|
||||||
|
if (!this.$refs.video) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.$refs.video.jumpToSelectedIndex();
|
this.$refs.video.jumpToSelectedIndex();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user