Author Topic: Scroll view manic behavior before first touch  (Read 2030 times)

nerophon

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Scroll view manic behavior before first touch
« on: February 25, 2014, 11:31:20 AM »
Hi,

As of 3.5.1, our scroll views display odd behavior. When first loaded, the offset and center values of the scroll panels appear to rise / fall uncontrollably as frames go by. This results in no visible movement of the scroll view, but if left alone the values continue to rise indefinitely which must be bad! Moreover, in some of our views, this behavior appears to make the scroll view "lock up" and refuse to budge when dragged (in-editor & on-device). Specifically, the drag is instantly cancelled in the next frame, and the scroll view is pulled back to its origin.

Perhaps related, we are also seeing an occasional ability to drag a scroll view initially (once) even if it is entirely within the frame bounds despite the "Cancel Drag If Fits" box being checked.

Upon further investigation, we have discovered that commenting out line 551 "mPanel.clipOffset = new Vector2(clip.x - cr.x, clip.y - cr.y);" in UIScrollView prevents the problem. We are not sure what further consequences may result, however, so we are wary of simply adopting this change without your recommendation.

Thanks,

Nicholas Bellerophon
Senior Developer


p.s. thanks for the mesh memory leak fix, our application now profiles clean and memory-stable; we are able to proceed with our next release and greatly appreciate your efforts to keep NGUI the best middle-ware in the asset store
« Last Edit: February 25, 2014, 11:59:59 AM by nerophon »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Scroll view manic behavior before first touch
« Reply #1 on: February 25, 2014, 01:35:29 PM »
Without that line it's not possible to drag the scroll view. What's causing this function to be called in your case? It should only be called while dragging. You need to look into what's causing it to move.

nerophon

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Re: Scroll view manic behavior before first touch
« Reply #2 on: February 26, 2014, 06:21:28 AM »
Thanks, yes indeed some of our less experienced team members put anchors on the scroll panels. <sigh>