1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

Fix lightbox loading flickering #806

This commit is contained in:
Patrik J. Braun 2024-01-06 12:48:51 +01:00
parent 4a2959edaf
commit acccde3054

View File

@ -184,7 +184,6 @@ export class GalleryLightboxMediaComponent implements OnChanges {
this.gridMedia && this.gridMedia &&
!this.mediaLoaded && !this.mediaLoaded &&
this.thumbnailSrc !== null && this.thumbnailSrc !== null &&
!this.gridMedia.isPhotoAvailable(window.innerWidth, window.innerHeight) &&
(this.gridMedia.isThumbnailAvailable() || (this.gridMedia.isThumbnailAvailable() ||
this.gridMedia.isReplacementThumbnailAvailable()) this.gridMedia.isReplacementThumbnailAvailable())
); );