fix(fe2): panoramic previews not triggering on hover (#2457)

* fix(fe2): panoramic previews not triggering on hover

* undo dev change
This commit is contained in:
Kristaps Fabians Geikins
2024-07-01 11:03:07 +03:00
committed by GitHub
parent 15e9ad9462
commit e73c2c3d4f
@@ -183,7 +183,7 @@ export function usePreviewImageBlob(
let blobUrl: string
if (enableDirectPreviews || import.meta.server) {
const blobUrlConfig = new URL(basePreviewUrl)
const blobUrlConfig = new URL(basePanoramaUrl.value)
blobUrlConfig.searchParams.set('v', cacheBust.value.toString())
blobUrl = blobUrlConfig.toString()
} else {
@@ -231,7 +231,7 @@ export function usePreviewImageBlob(
const regeneratePreviews = (basePreviewUrl?: string) => {
cacheBust.value++
processBasePreviewUrl(basePreviewUrl || unref(previewUrl))
if (shouldLoadPanorama) processPanoramaPreviewUrl()
if (shouldLoadPanorama.value) processPanoramaPreviewUrl()
}
watch(shouldLoadPanorama, (newVal) => {