oddgames / UIToolkit

Single draw call UI solution for Unity with multi resolution support and more.
518 stars 153 forks source link

UIScrollableVerticalLayout scroller disappears on iphone when you scroll too fast #123

Open JMcElroy opened 12 years ago

JMcElroy commented 12 years ago

It seems like multiple scrolls followed with a fast swipe makes the content disappear. I traced i down to this line of code in UIAbstractTouchableContainer:

var avgVelocity = total / _velocities.Count;

Looks like _velocities count becomes zero, making avgVelocity NaN and thus scrollPosition becomes NaN.

PapaWhiskey65 commented 12 years ago

we found and fixed this quite a while ago, you need an update