This piece of code changed the spring's target, but didn't force Spring to be enabled. So, if the Spring component was disabled by this time, nobody enabled it and it didn't move the item to the target point.
So, I needed to add something like:
sp.target.x-= fx;
sp.target.y-= fy;
sp.UpdateTarget();
and also add a method to SpringPosition.cs:
publicvoid UpdateTarget()
{
mThreshold = 0f;
enabled =true;
}
Also, seems that UITable.cs : 277 will cause the same issue.
Title: Re: NGUI BUG (+FIX): UIGrid + smooth animate
Post by: ArenMook on February 21, 2017, 12:29:16 PM
Thanks, I'll make similar changes on my end and see if they cause any adverse effects.