private void onScroll(BaseEventData ed) { PointerEventData pd = (PointerEventData)ed; float mh = pd.scrollDelta.normalized.y * listView.getContainerHeight() * 0.2f; plusY(mh); }
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; }
private float getTotalH() { return(list.getTotalHeight() - list.getContainerHeight()); }