Sha256: d0b232866a49af1b74ccf985d1a80f921e350fde672d5b016d20bb8f95b43eab
Contents?: true
Size: 761 Bytes
Versions: 4
Compression:
Stored size: 761 Bytes
Contents
# ----------------------------------------------------------------------------- # LIST SCROLL # ----------------------------------------------------------------------------- @_listBindScroll = (listEl) -> $container = listEl.$el $list = listEl.$items arrayStore = listEl.config.arrayStore $list.scroll (e) => if not arrayStore.dataFetchLock $listChildren = $list.children() listChildrenCount = $listChildren.length listFirstChildHeight = $listChildren.first().outerHeight() listHeight = listChildrenCount * listFirstChildHeight viewHeight = $container.height() if listHeight < (viewHeight + e.target.scrollTop + 100) listEl._loading -> arrayStore.fetchNextPage()
Version data entries
4 entries across 4 versions & 1 rubygems