dimsemenov / PhotoSwipe

JavaScript image gallery for mobile and desktop, modular, framework independent
http://photoswipe.com
MIT License
24.1k stars 3.31k forks source link

Endless scrolling #1669

Open webdesignweisshart opened 4 years ago

webdesignweisshart commented 4 years ago

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.

andi34 commented 4 years ago

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.