javascript - Listen for swipe/touch events with Photoswipe gallery plugin -


The gallery has changed when it's a special Photoshop event

  // Changes the slides After leaving // (in exchange for content) pswp.listen ('afterchange', function () {});  

I am thinking that there can be a direction to determine the direction, which has been replaced by left or right. Does anybody have an idea?

You can compare the index in this event handler, pswp.getCurrentIndex () The current slide index will return.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -