Linked Questions

Popular Questions

Prevent Swiping/Dragging of slides in PhotoSwipe

Asked by At

I can not seem to get Photoswipe to prevent a drag/swipe from changing slides (so only the arrows go to the previous/next slides)

The issue is that I've got a HTML slide with touch events inside it, but photoswipe's touch events are superseding them and while dragging around in the content of the slide, the entire slide moves too...

I thought this event was supposed to prevent it?

pswp.listen('preventDragEvent', function(e, isDown, preventObj) {
    preventObj.prevent = true;

I also tried the 'isClickableElement' option, but that doesn't seem to help, either...

Related Questions