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

Bug - Image scrolling in the background if you a click thumbnail skipping the next or previous.

Open SnippetsUnlimited opened this issue 6 years ago • 4 comments

When you have a thumbnail selected and click a thumbnail skipping the next one, you can see the image of skipped thumbnail scroll behind the image you have just selected.

For example if I have 14 thumbnails, if I click the 3rd thumbnail (which displays the image for this thumbnail) and then click the 5th thumbnail, I can see image for 4th thumbnail sliding behind the image of 5th thumbnail. The same is happens in reverse too. This issue does not occur for clicking thumbnails which are 2 positions apart.

I am using these options:

this.galleryOptions = [
  {
    width: '900px',
    height: '500px',
    imagePercent: 85,
    imageSize: NgxGalleryImageSize.Contain,
    imageAnimation: NgxGalleryAnimation.Slide,

    thumbnailsColumns: 7,
    thumbnailsMoveSize: 6,
    thumbnailsMargin: 5,
    thumbnailsRows: 1,
    thumbnailsPercent: 15,
    thumbnailSize: NgxGalleryImageSize.Contain,

    previewFullscreen: true,
    previewCloseOnEsc: true
  }
];

SnippetsUnlimited avatar Dec 18 '18 21:12 SnippetsUnlimited

Same problem. We fixed this with background on .ngx-gallery-image class

webcamil avatar Mar 22 '19 09:03 webcamil

I have the same problem. Is there any other fix besides adding background?

ibrcic avatar May 24 '19 13:05 ibrcic

@1Tvink how did you fixed problem. can you explain

ankithtv avatar Dec 16 '19 06:12 ankithtv

Hi! Is this present in my recreated repo? If yes, create issue in my repo please. Thanks! https://github.com/kolkov/ngx-gallery

kolkov avatar Dec 16 '19 06:12 kolkov