mirror of
https://github.com/xuthus83/pigallery2.git
synced 2025-01-14 14:43:17 +08:00
improving lightbox
This commit is contained in:
parent
2cad2241e1
commit
da7f1cc64c
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user