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:
Pablo Gamito
2020-09-02 20:39:57 +02:00
parent 6485239038
commit b2b79396da

View File

@@ -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();
}, },
}, },