Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: notehaha on October 11, 2014, 11:52:50 AM

Title: Scrollview's momentum vs UIGrid'spring
Post by: notehaha 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)


Title: Re: Scrollview's momentum vs UIGrid'spring
Post by: ArenMook 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.