Author Topic: Scrollview's momentum vs UIGrid'spring  (Read 2602 times)

notehaha

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 9
    • View Profile
Scrollview's momentum vs UIGrid'spring
« on: October 11, 2014, 11:52:50 AM »
Hi ArenMook and all,

I am using Scrollview with UIgrid inside. each UIGrid's child looks as a page of mobile view.

My goal is to swipe the current page to the next page by using a short swipe.

to have what i expect, i increase my Scrollview momentum&Spring to 80, 120, 150. also i change UIGrid child to center's spring value to 12,20 and some value.

my result is about ok since I can swipe shortly to change my page BUT if i have long swipe, the scrollview bring me to the 3,4,5 or the end of Grid's child.

I do want your help to advice to config or adapt sourcecode to have the scrollview using short and long swipe to change only one grid's child (Page)



ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Scrollview's momentum vs UIGrid'spring
« Reply #1 on: October 11, 2014, 07:08:55 PM »
NGUI has a property for that... next page threshold? Specified on the scroll view if I recall correctly.