You've already forked pigallery2
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:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user