PhotoSwipe icon indicating copy to clipboard operation
PhotoSwipe copied to clipboard

Endless scrolling

Open webdesignweisshart opened this issue 5 years ago • 1 comments

On touch devices endless scrolling (start with first pic after reaching last) is only possible, if minimum 3 pics in the gallery. Endless scrolling works on tapping the button, but not with swiping.

webdesignweisshart avatar Jan 05 '20 14:01 webdesignweisshart

From the documentation of options https://photoswipe.com/documentation/options.html

loop boolean true
Loop slides when using swipe gesture. If set to true you'll be able to swipe from last to first image. Option is always false when there are less than 3 slides.

This option has no relation to arrows navigation. Arrows loop is turned on permanently. You can modify this behavior by making custom UI.

andi34 avatar Aug 19 '20 03:08 andi34