Author Topic: Scroll View Springing Behavior when dropped from out of scrollview  (Read 2743 times)

ironpencil

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 9
    • View Profile
I am seeing some odd behavior on my scroll views. I have a grid in the scroll view, and some sprites in the grid. If I drag and drop a sprite beyond the clipping range of the scroll view in the scrolling direction, when it springs back to the scroll view the items on the other side will be pushed out of view. It's like it updates the clipping range to the location you dropped the item, then restricts that range in the panel. I thought maybe I was doing something wrong but I checked the Drag and Drop example and it does the same thing:



As you can see, it springs back into position, pushing the items off the bottom even though there is plenty of room for everything. When I click on the scroll view after this occurs, it then updates and brings everything back within the panel. I tried looking through the code to figure out what is happening and possibly how to fix it but with the 3 components interacting (drag drop item, grid, scroll view) I have not been able to determine the cause of the issue. Any suggestions?

Thanks.


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Scroll View Springing Behavior when dropped from out of scrollview
« Reply #1 on: July 27, 2014, 03:29:58 AM »
Repeating what you did on my end works as expected, so all I can suggest is make sure you have the latest NGUI.

ironpencil

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 9
    • View Profile
Re: Scroll View Springing Behavior when dropped from out of scrollview
« Reply #2 on: July 27, 2014, 11:55:46 AM »
That did it, looks like it was the same issue as this: http://www.tasharen.com/forum/index.php?topic=10203.0