Skip to content

Commit

Permalink
[previews] fix tile preloading
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoPennec committed Oct 6, 2023
1 parent ef14352 commit 5e81414
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/previews/PreviewPlayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
:width="width"
:handle-in="-1"
:handle-out="-1"
:preview-id="currentPreview ? currentPreview.id : ''"
:preview-id="isMovie && currentPreview ? currentPreview.id : ''"
@start-scrub="$refs['button-bar'].classList.add('unselectable')"
@end-scrub="$refs['button-bar'].classList.remove('unselectable')"
@progress-changed="onProgressChanged"
Expand Down
2 changes: 1 addition & 1 deletion src/components/previews/VideoProgress.vue
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ export default {
},
previewId() {
if (this.movieDimensions.width) {
if (this.movieDimensions.width && this.previewId) {
const path = `/api/movies/tiles/preview-files/${this.previewId}.png`
const img = new Image()
this.isTileLoading = true
Expand Down

0 comments on commit 5e81414

Please sign in to comment.