private void onReflesh() { stopMoveTask(); if (list.isScollble()) { gameObject.SetActive(true); syncSliderValue(); } else { gameObject.SetActive(false); } }
void Update() { float totalH = list.getTotalHeight() - list.getContainerHeight(); List <ItemBundle> ibs = list.listVisble(); float firstY = ibs[0].getRealY(); text.text = "Scrollble=" + list.isScollble() + " ended=" + list.isEnded() + " firstY=" + firstY; text.text += " totalH=" + totalH; string ss = ""; foreach (ItemBundle ib in ibs) { ss += ib.position + " , "; } text.text += "\n" + ss; }