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
Post a Comment