-
-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Override 'next' and 'previous' behavior? #264
Comments
Hi @yarozar, This could be an interesting feature for future releases and if someone want to contribute with a PR. Why do you need this? The library already load images only when needed, storing in array of Image objects only URLs. |
@Ks89 , yes, I already did it that way. Though I have left it buggy in case there are 2 or 1 images only - in that case I was unable to identify if I should go forward into next chunk of images or backwards into previous. :) BTW from this comes another question/feature request which maybe more straightforward and easier to implement - would be useful to get more detailed information about user action inside I have big gallery built on my own, with thumbnails and pagination. Modal Gallery being triggered when user clicks on thumbnail and in that case I populate it with current chunk of images. I made it 'infinite' scroll, when user reaches last image in Modal Gallery - I se a flag like isPrevImgLast=true, if next show$ is first image - then I check for isPrevImgLast and if all true - reload gallery with next chunk of images. Same for flow first image -> last image in opposite direction. |
I'm sorry for the huge delay, but I'am really busy this week. |
@yarozar totally agree with you about this. This could be interesting. |
Can I override 'next' and 'previous' buttons in Modal Gallery?
What I want is to be able to reload Images[] upon clicking 'next' on last image or 'prev' on first - i.e. implement sort of pagination for the gallery and load images in chunks.
The text was updated successfully, but these errors were encountered: