Author Topic: Problem with ScrollView in 5.3.1  (Read 4737 times)

nestilion

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Problem with ScrollView in 5.3.1
« 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?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Problem with ScrollView in 5.3.1
« Reply #1 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.

nestilion

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: Problem with ScrollView in 5.3.1
« Reply #2 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.
« Last Edit: January 29, 2016, 04:32:07 AM by nestilion »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Problem with ScrollView in 5.3.1
« Reply #3 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.

bskim45

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: Problem with ScrollView in 5.3.1
« Reply #4 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)

bskim45

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: Problem with ScrollView in 5.3.1
« Reply #5 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.