Skip to content

RefreshControl blocks onScrollEndDrag events #9377

Description

@maxim-c

On Android when scrolling to 0 offset refresh control starting mounting, and scrolling stops, you can't even scroll again with current touch, but events(onScrollEndDrag) not triggered. If you poll down enough you surely get triggered 'onRefresh' event from 'RefreshControl' where you can at least know that offset is 0, but if you don't poll enough...
Maybe there any workaround, or i'm missing something?

handleScrollEndEvents(e){
  console.log(e)
}
render() {
  return(
    <ListView
      ref={(c) => this._list = c}
      refreshControl={
        <RefreshControl
          refreshing={this.state.isRefreshing}
          onRefresh={this._onRefresh}
        />
      }
      onMomentumScrollEnd={this.handleScrollEndEvents}
      onScrollEndDrag={this.handleScrollEndEvents}
    />
  )
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions