ps-image: prevent repeat loading of full res

Signed-off-by: Varun Patil <radialapps@gmail.com>
dexie
Varun Patil 2023-09-30 14:29:38 -07:00
parent a78aa311f0
commit 58220ecd2c
1 changed files with 3 additions and 3 deletions

View File

@ -101,6 +101,9 @@ export default class ImageContentSetup {
const img = slide.holderElement?.querySelector('.ximg:not(.ximg--full)') as HTMLImageElement;
if (!img) return;
// Don't load again
slide.data.highSrcCond = 'never';
// Load full image at secondary zoom level
img.classList.add('ximg--full');
@ -114,9 +117,6 @@ export default class ImageContentSetup {
// Set src
img.src = blobSrc;
// Don't load again
slide.data.highSrcCond = 'never';
})
.finally(() => {
this.loading--;