roeierez / infinite-list

Infinite list in javascript that scrolls in 60fps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pull to refresh use?

JeremyColton opened this issue · comments

Hi,

In the /dist/InfiniteList.js there's a Scroller class that has a activatePullToRefresh API.

How can I use this in the infinite list?

Many thanks.

HI Jeremy,
Unfortunately currently there is no support now for pullToRefresh.
The code you have found was due to an unused left dependency and I will clean it.
Sorry for that.
To implement that I am thinking about exposing two callbacks:

renderPullToRefreshItem(domElement, componentState)
onRefresh()

Both of them will be called by the list.
Does this sound good? or you have a better idea?
To be honest I am not so available these days but I will try my best.

Hi, that sounds great! Are you able to write it or it's just an idea? I really need this feature.

On Oct 28, 2016, at 1:18 PM, Roei Erez notifications@github.com wrote:

HI Jeremy,
Unfortunately currently there is no support now for pullToRefresh.
The code you have found was due to an unused left dependency and I will clean it.
Sorry for that.
To implement that I am thinking about exposing two callbacks:

renderPullToRefreshItem(domElement, componentState)
onRefresh()

Both of them will be called by the list.
Does this sound good? or you have a better idea?
To be honest I am not so available these days but I will try my best.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Untracked with Trackbuster