Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    Works for me. It looks like:

    var options = {
    				index: $index,
    				bgOpacity: 0.9,
    				showHideOpacity: false,
    				loop: false,
    				galleryUID: $(this).parents('.psgal').attr('id'),
    				getThumbBoundsFn: function(index) {
    					var image = items[index].el.find('img'),
    					offset = image.offset();
    					return {x:offset.left, y:offset.top, w:image.width()};
    				}
    			}
    Thread Starter zulumaster

    (@zulumaster)

    Hi,
    where exactly must i place this snippet,in the photoswipe.js?

    Thanks

    Edit photoswipe-masonry.js

    Around line 50: Add

    loop: false,

    into the options.

    If you want to disable updates change the version number to 9.9.9 in the readme.txt and photoswipe-masonry.php

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Stop the Loop during swiping’ is closed to new replies.