ngx-gallery icon indicating copy to clipboard operation
ngx-gallery copied to clipboard

Open preview select next image

Open ironista opened this issue 5 years ago • 6 comments

I have a gallery with two images. When I click the thumbnail of first image, preview shows the next one (second image). I thinks preview index is not aligned with the thumbnail one. Could you check please?

Here are my settings and code:

"dependencies": {
    "@angular/core": "~9.1.0",
    "@kolkov/ngx-gallery": "^1.0.11"
}
  ngOnInit() {
    this.galleryOptions = [
      {
        "thumbnails": false,
        "previewCloseOnClick": true,
        "previewCloseOnEsc": true,
        "width": "100%",
        "height": ""
      },
    ];
   ...
  }

private updateGalleryImages() {
    if (this.fullMeasurementProject && this.fullMeasurementProject.measurementProject) {
      const right = this.fullMeasurementProject.measurementProject.pictureRight;
      const left = this.fullMeasurementProject.measurementProject.pictureLeft;

      const smallWidth = 240;
      const mediumWidth = 480;

      this.galleryImages = [
        {
          small: this.measurementService.getImageUrl(right, smallWidth),
          medium: this.measurementService.getImageUrl(right, mediumWidth),
          big: this.measurementService.getImageUrl(right)
        },
        {
          small: this.measurementService.getImageUrl(left, smallWidth),
          medium: this.measurementService.getImageUrl(left, mediumWidth),
          big: this.measurementService.getImageUrl(left)
        }
      ]
    }
  }

The measurementService is not responsible for inversion.

ironista avatar Mar 27 '20 12:03 ironista

I encountered this issue as well. To me, this happens when imageAnimation is set to something different than NgxGalleryAnimation.Slide. For Slide it works as intended.

raffaelfoidl avatar Mar 29 '20 17:03 raffaelfoidl

I encountered this issue as well. To me, this happens when imageAnimation is set to something different than NgxGalleryAnimation.Slide. For Slide it works as intended.

Same for me. Thank you.

ironista avatar Mar 30 '20 07:03 ironista

I'm also problem with NgxGalleryAnimation.Slide, preview select next image

julianosouzanh avatar Jun 11 '20 19:06 julianosouzanh

by and large, everything would have to be rewritten there ...

kolkov avatar Jun 11 '20 19:06 kolkov

Same problem, is there any solution, please provide any one have any solution.

pushprajkiwitech avatar Dec 23 '20 10:12 pushprajkiwitech

Same issue, setting imageAnimation: NgxGalleryAnimation.Slide fixes it as @raffaelfoidl says. Using Angular 11.

edarioq avatar May 03 '21 06:05 edarioq