Author Topic: UIScrollView with UICenterOnChild sliding one page/item  (Read 3173 times)

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
UIScrollView with UICenterOnChild sliding one page/item
« on: February 21, 2014, 10:02:20 AM »
How the title said, I would like to slide just one page or item in the scrollview doesn't matter how long it's the swipe.
Currently if you do a long swipe it goes far away and I prefer to change it to just the next item doesn't matter how long is the swipe.

Thanks!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIScrollView with UICenterOnChild sliding one page/item
« Reply #1 on: February 21, 2014, 02:05:44 PM »
I'm not sure if this was a question or a feature request. If you want that kind of functionality, you'll need to code that kind of logic.

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Re: UIScrollView with UICenterOnChild sliding one page/item
« Reply #2 on: February 21, 2014, 02:53:44 PM »
At first it was a question.... I was just wondering if exist in how it works right now.
A lot of clients look for that behavior on ScrollView.
It would be nice to have a toggle option in the UICenterOnChild script.

Thanks!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIScrollView with UICenterOnChild sliding one page/item
« Reply #3 on: February 21, 2014, 02:57:00 PM »
If your children are positioned far enough (think pages), then swiping will go to the next "page", provided the Next Page Threshold is set on UICenterOnChild.

dandrea

  • Newbie
  • *
  • Thank You
  • -Given: 6
  • -Receive: 2
  • Posts: 23
    • View Profile
Re: UIScrollView with UICenterOnChild sliding one page/item
« Reply #4 on: January 04, 2017, 01:10:00 PM »
At first it was a question.... I was just wondering if exist in how it works right now.
A lot of clients look for that behavior on ScrollView.
It would be nice to have a toggle option in the UICenterOnChild script.

Thanks!

Sorry about the post necromancy, but maybe it's useful to someone else:

Try grouping your elements inside container widgets. The Scrollview will contain the containers, and each container will work as a page.