Skip to main content
lshuh.1
Associate II
March 23, 2021
Solved

How to implement swipe container page circular

  • March 23, 2021
  • 3 replies
  • 1216 views

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

help~~

thank you.:eyes:

This topic has been closed for replies.
Best answer by Romain DIELEMAN

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

3 replies

Romain DIELEMAN
Romain DIELEMANBest answer
ST Employee
March 24, 2021

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

lshuh.1
lshuh.1Author
Associate II
March 26, 2021

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

Romain DIELEMAN
ST Employee
March 29, 2021

Great to hear that :thumbs_up:

/Romain