fix case for lastVisibleIndex when item partially visible