roeierez / infinite-list

Infinite list in javascript that scrolls in 60fps
623 stars 45 forks source link

Pull to refresh use? #17

Open JeremyColton opened 7 years ago

JeremyColton commented 7 years ago

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.

roeierez commented 7 years ago

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.

JeremyColton commented 7 years ago

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