cancel
Showing results for 
Search instead for 
Did you mean: 

How to implement swipe container page circular

lshuh.1
Associate II

just like example ( page0 -> page1 -> page2 -> page0 -> page1 -> page2 -> page0 )

help~~

thank you.:eyes:

1 ACCEPTED SOLUTION

Accepted Solutions
Romain DIELEMAN
ST Employee

Hi,

A way to do it I guess could be to use two fake pages so that you have a swipe container that looks like this:

fake page 1 -> page0 -> page1 -> page2 -> fake page 2

Fake page 1 needs to look like 2, and fake page 2 looks like page 0. Then when you scroll from page 2 to fake page 2, you set the scrollwheel to page 0.

You could always have two exact same scroll wheels otherwise as well and do the same idea.

/Romain

View solution in original post

3 REPLIES 3
Romain DIELEMAN
ST Employee

Hi,

A way to do it I guess could be to use two fake pages so that you have a swipe container that looks like this:

fake page 1 -> page0 -> page1 -> page2 -> fake page 2

Fake page 1 needs to look like 2, and fake page 2 looks like page 0. Then when you scroll from page 2 to fake page 2, you set the scrollwheel to page 0.

You could always have two exact same scroll wheels otherwise as well and do the same idea.

/Romain

Thank you for your answer, I have used this answer to solve the problem, thank you

Great to hear that :thumbs_up:

/Romain