1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2025-01-14 14:43:17 +08:00

improving lightbox

This commit is contained in:
Patrik J. Braun 2019-07-18 23:07:07 +02:00
parent 2cad2241e1
commit da7f1cc64c

View File

@ -158,11 +158,11 @@ export class GalleryLightboxComponent implements OnDestroy, OnInit {
//noinspection JSUnusedGlobalSymbols
@HostListener('window:resize', ['$event'])
onResize() {
this.updatePhotoFrameDim();
if (this.activePhoto) {
this.animateLightbox();
this.updateActivePhoto(this.activePhotoId);
}
this.updatePhotoFrameDim();
}
public nextImage() {