Skip to content

Commit

Permalink
refactor(lg-zoom): refactor zoom module
Browse files Browse the repository at this point in the history
improve performance and bug fixes
  • Loading branch information
sachinchoolur committed Jul 15, 2021
1 parent c46b498 commit 67e56e3
Show file tree
Hide file tree
Showing 2 changed files with 278 additions and 217 deletions.
5 changes: 3 additions & 2 deletions src/lightgallery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export class LightGallery {

private isDummyImageRemoved = false;

private mediaContainerPosition = {
public mediaContainerPosition = {
top: 0,
bottom: 0,
};
Expand Down Expand Up @@ -416,7 +416,8 @@ export class LightGallery {
const currentGalleryItem = this.galleryItems[this.index];
const videoInfo = currentGalleryItem.__slideVideoInfo;

const { top, bottom } = this.getMediaContainerPosition();
this.mediaContainerPosition = this.getMediaContainerPosition();
const { top, bottom } = this.mediaContainerPosition;
this.currentImageSize = utils.getSize(
this.items[this.index],
this.$lgContent,
Expand Down
Loading

0 comments on commit 67e56e3

Please sign in to comment.