void MoveScrollerPivot(Vector2 delta) { Vector2 newDelta = m_BackgroundLayout.ScreenDeltaToLayoutSpace(delta); Vector3 curPos = m_ScrollPivot.transform.localPosition; //if(Mathf.Abs(delta.x) > 0) // Debug.Log("delta: " + delta.x + " layoutDelta: " + newDelta.x); curPos.x += newDelta.x; curPos.y += newDelta.y; curPos.x = Mathf.Clamp(curPos.x, m_ScrollLimitHardMin, m_ScrollLimitHardMax); m_ScrollPivot.transform.localPosition = curPos; m_ScrollPivot.SetModify(true); }