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
Slideshow (auto next) #753
Comments
For now I don't have plans to add this feature, at least until fade transition feature is ready. It's not that hard to implement it by yourself, use PhotoSwipe public API http://photoswipe.com/documentation/api.html |
Following.... I would like this feature too. |
Any plans to add this into the core functionality? |
Has anyone implemented this? |
it's done in one line, after you create and init your psp, aka: |
That just forces a transition every 4 seconds. It should also be stopped if the user interacts (eg they zoom in a pic to take a closer look, or go back to a previous pic). Plus some sort of toggle for auto next being on/off. Even the timing needs some attention. For example if it takes 3 seconds to display the image (eg slow network) then the timer should really start from when the image is reasonably visible, and not from when the loading started. |
I agree with @rogerbinns on this, @Plixo's solution isn't very optimal. Are there any plans to add it now or is it still the same status? |
Would be nice to see it merged to PhotoSwipe |
Lot's of edits on this comment, but the important take away is that the code provided does function, it just has an issue that occurs if the slideshow is started and paused too quickly. |
You shouldn't need to ever click the start/stop slideshow button
repeatedly, as it only begins the process. You don't need to click it again
to change slides...
But if you think users will repeatedly click it anyway, you could keep
track of the number of outstanding timers pending (increment the variable
when calling setTimeout() and decrement it when entering gotoNextSlide()),
and don't call setTimeout if this is greater than 0. What's happening is
that multiple timeouts are getting created if you click start/stop rapidly
enough (within 1.25s by default).
If you do this, please post the code. Good luck
…On Fri, Sep 6, 2019 at 10:34 PM Dustyn Altimus ***@***.***> wrote:
@jtbr <https://github.com/jtbr> Thanks a lot for sharing your slideshow
solution. I am trying to implement it, but running into a problem where, if
you click click the slideshow button too fast it behaves strangely, such as
moving way too fast. It works perfectly if I always wait enough time
between presses, but I can't rely on users doing that consistently.
I am trying to figure out a way to fix it on my own, but do you have any
ideas about it?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#753?email_source=notifications&email_token=ADESBN6XBPKIK75TQHVJE53QIK5E5A5CNFSM4A3VGSU2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6D7RJY#issuecomment-529004711>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADESBN737PQFHQDJN6753YLQIK5E5ANCNFSM4A3VGSUQ>
.
|
Thank you for explaining, it helped me understand what was happening a lot better. Edit: I've decided not to implement a slideshow on my gallery. |
Slideshow solution for PhotoSwipe by jtbr. Source: dimsemenov/PhotoSwipe#753 (comment) Change-Id: Ied57db2f109eacbced0f6971263cbcb3062c2bbc
Slideshow solution for PhotoSwipe by jtbr. Source: dimsemenov/PhotoSwipe#753 (comment) Change-Id: Ied57db2f109eacbced0f6971263cbcb3062c2bbc
Thanks for your shared code @jtbr . You could point me in the right direction to refresh the image database after X seconds and start the slideshow directly with latest image without the need to click on a thumbnail and without another click to start the slideshow again? |
Slideshow solution for PhotoSwipe by jtbr. Source: dimsemenov/PhotoSwipe#753 (comment) Change-Id: Ied57db2f109eacbced0f6971263cbcb3062c2bbc
Slideshow solution for PhotoSwipe by jtbr. Source: dimsemenov/PhotoSwipe#753 (comment) Change-Id: Ied57db2f109eacbced0f6971263cbcb3062c2bbc
Slideshow solution for PhotoSwipe by jtbr. Source: dimsemenov/PhotoSwipe#753 (comment) Change-Id: Ied57db2f109eacbced0f6971263cbcb3062c2bbc
Slideshow solution for PhotoSwipe by jtbr. Source: dimsemenov/PhotoSwipe#753 (comment) Change-Id: Ied57db2f109eacbced0f6971263cbcb3062c2bbc
Slideshow solution for PhotoSwipe by jtbr. Source: dimsemenov/PhotoSwipe#753 (comment) Change-Id: Ied57db2f109eacbced0f6971263cbcb3062c2bbc
This is a feature request to the ui to add slideshow functionality (essentially automatically next every N seconds) with a button alongside the others to start it. Ideally any user interaction should cancel the auto next. It would also be nice if I could make photoswipe start with the auto next already on.
The text was updated successfully, but these errors were encountered: