private int GetCircularListIndex(int slot, bool wrap)
        {
            int index = slot - this.FirstScrollingSlot - _headScrollingElements - _owner.GetCollapsedSlotCount(this.FirstScrollingSlot, slot);

            return(wrap ? index % _scrollingElements.Count : index);
        }