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;
|
||||
},
|
||||
changeVideoTimestamp(ts) {
|
||||
if (!this.$refs.video) {
|
||||
return;
|
||||
}
|
||||
this.$refs.video.selectFrameAtTime(ts);
|
||||
},
|
||||
resetVideoTimestamp() {
|
||||
if (!this.$refs.video) {
|
||||
return;
|
||||
}
|
||||
this.$refs.video.jumpToSelectedIndex();
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user