Skip to content

Commit

Permalink
Fixes #1889 - Incorrect scaling of POI pictures when phone is flipped
Browse files Browse the repository at this point in the history
  • Loading branch information
HarelM committed May 4, 2023
1 parent 8484e51 commit fed6a43
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,8 @@ export class PhotoSwpieComponent extends BaseMapComponent implements AfterViewIn
public ngAfterViewInit(): void {
let pswpElement = this.photoswipe.nativeElement;

let dataSource = this.data.imageUrls.map(i => ({
src: i,
w: window.innerWidth,
h: window.innerHeight
let dataSource = this.data.imageUrls.map(imageUrl => ({
src: imageUrl,
}));

let pswp = new PhotoSwipe({
Expand All @@ -50,7 +48,7 @@ export class PhotoSwpieComponent extends BaseMapComponent implements AfterViewIn
maxZoomLevel: 8,

});
//pswpElement, PhotoSwipeUI_Default, items, options);

pswp.on("destroy", () => this.closed.emit());
pswp.init();
}
Expand Down

0 comments on commit fed6a43

Please sign in to comment.