NGUI的回弹控制需要玩家自己修改源码或者自己实现,以下代码是修改的源码
红色部分字添加和修改的,目前是纵向的,如果修改横向,那么需要调整的是X轴坐标
public bool NeedbackPosition = true;
public bool RestrictWithinBounds(bool instant) { return RestrictWithinBounds(instant, true, true); }
/// <summary>
/// Restrict the scroll view's contents to be within the scroll view's bounds.
/// </summary>
public bool RestrictWithinBounds(bool instant, bool horizontal, bool vertical)
{
if (mPanel == null) return false;
Bounds b = bounds;