-
-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Duplicate images not showing on Next / Back preview.(v6.3.0) #171
Comments
Thank u I'll investigate |
I've made a temp fix . When I'm pushing the images from my response into image[]. |
Oh yes you are right I already saw this. It's about caching and browsers don't emit the load event for cached images. I can't do anything to fix this, however your idea is interesting. If it is really working I can suggest it in the doc as a workaround. |
I made some quick experiments and your idea (...?1) is working very well. I'll add it for sure in the doc website also with a dedicated demo in version 7.1.0 or 7.2.0 this month. I'm still thinking if it could be good to implement a logic that automatically append '?index' to all images when you provide the images array to the library. What do you think? Thank u man 👍 |
Ok no, I cannot do this because if users want base64 images this will break paths. |
I was thinking about that ...., because I saw support for base64, and you are right for now I think only worth mentioning in documentation as a workaround for people who are using img paths. |
All demos has been updated in 7.2.0 on a dedicated branch (called 720) in this repo. I'll merge the branch into master this month (I don't know when exactly, probably at the end of December). Issue closed. |
I'm submitting a...
Current behavior
Hello!
I'm trying to add a no_preview image for files that are not considered image.
The problem that I'm facing is that when I'm adding 2 or more of the same image src (remote / local) the preview is not working on Next / Back button.
I also tried on your demo app :
https://stackblitz.com/edit/angular-modal-gallery-v5/?file=app%2Fapp.component.ts
And for example if I'm changing the image array like this:
mages: Image[] = [
new Image(
0,
{ // modal
img: 'https://raw.githubusercontent.com/Ks89/angular-modal-gallery/v4/examples/systemjs/assets/images/gallery/img1.jpg',
extUrl: 'http://www.google.com'
}
),
new Image(
1,
{ // modal
img: 'https://raw.githubusercontent.com/Ks89/angular-modal-gallery/v4/examples/systemjs/assets/images/gallery/img1.jpg',
description: 'Description 2'
}
)
];
You will notice that when you want to navigate from image 0 to 1 is staying in a loading loop.
This is happening only first time.
Expected behavior
I would expect that even if you have duplicate images to be able to navigate without any problems.
Minimal reproduction of the problem with instructions
Browser:
The text was updated successfully, but these errors were encountered: