Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started 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?
-
"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.
-
"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.
-
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.
-
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)
-
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.