Loop in pages with arrows

How i can back to start when the pages be in the last page and user click on next?

The manual answer is to use the Pages swipe array for each page and go() on the buttons. https://zimjs.com/cat/page.html swipes to the first from the last and the last from the first. No buttons in that example though - but you would use arrows with go() method on them.

Another answer, is that we could add a continuous parameter to either Pages or Arrow so that rather than stopping, it loops. Will look into that today to see if we can patch ZIM 016 - although we could call it a new feature of ZIM 017 as we are so close.

Okay - we have patched ZIM 016 with a continuous parameter - here is an example:

https://zimjs.com/test8/pages_continuous.html

thanks!
that miss from the docs

It is there now... do a refresh - but yes, we have just added it.

Yes! I see that.
Thanks!

1 Like