Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: nestilion on January 28, 2016, 07:22:22 AM

Title: Problem with ScrollView in 5.3.1
Post by: nestilion on January 28, 2016, 07:22:22 AM
I got a scrollview which represent my levels choose screen. I have checked "Cancel drag if fits" box, but my scrollview still springs back instead of cancel drag when content inside scrollview ends. This feature works perfectly in 4.6.9, and not working in 5.3.1. What should I do?
Title: Re: Problem with ScrollView in 5.3.1
Post by: ArenMook on January 28, 2016, 10:51:31 PM
"Cancel drag if fits" option prevents scroll view dragging if the content fully fits into the scroll view's region. It has nothing to do with springing. That option is defined by the "Drag Effect" drop-down.
Title: Re: Problem with ScrollView in 5.3.1
Post by: nestilion on January 29, 2016, 03:56:52 AM
"Cancel drag if fits" option prevents scroll view dragging if the content fully fits into the scroll view's region. It has nothing to do with springing. That option is defined by the "Drag Effect" drop-down.
Well, it's not working. My content fits into scroll view region, but still, I can drag it.
Attached image.
UPDATE:
I'm sorry, it works fine when i have only few items, but what i want is cancel drag if firs or last item near panel border.
Title: Re: Problem with ScrollView in 5.3.1
Post by: ArenMook on January 31, 2016, 06:09:30 AM
That's the spring effect. Change the drag effect to be "None" instead of spring, and it won't let you exceed the bounds when dragging.
Title: Re: Problem with ScrollView in 5.3.1
Post by: bskim45 on February 10, 2016, 04:37:14 PM
Same here after upgraded to Unity 5.3.1 from Unity 4.6.9f. I set drag effect to "None", but it keep drags over the clipping plane.
(NGUI 3.9.6d)
Title: Re: Problem with ScrollView in 5.3.1
Post by: bskim45 on February 10, 2016, 05:00:56 PM
After some trials, I found that it was not problem of unity 5.
Problem occurs since I've upgraded NGUI from 3.9.4 to 3.9.6.
Commenting line 872 - 877 of UIScrollView.cs works well as past.