1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2025-12-13 23:56:56 +02:00

updating docs and fixing fullscreen error

This commit is contained in:
Patrik J. Braun
2018-12-12 21:03:06 +01:00
parent afcf0e2032
commit 298a6600d3
9 changed files with 76 additions and 26 deletions

View File

@@ -39,7 +39,7 @@ export class GalleryLightboxComponent implements OnDestroy, OnInit {
@ViewChild('photo') mediaElement: GalleryLightboxMediaComponent;
@ViewChild('lightbox') lightboxElement: ElementRef;
@ViewChild('root') root: HTMLElement;
@ViewChild('root') root: ElementRef;
public navigation = {hasPrev: true, hasNext: true};
public blackCanvasOpacity = 0;
@@ -251,7 +251,7 @@ export class GalleryLightboxComponent implements OnDestroy, OnInit {
if (this.fullScreenService.isFullScreenEnabled()) {
this.fullScreenService.exitFullScreen();
} else {
this.fullScreenService.showFullScreen(this.root);
this.fullScreenService.showFullScreen(this.root.nativeElement);
}
break;
case 'c':