Skip to content

Commit

Permalink
closes APSL#95 Changed scrollEventThrottle to rightly handle reset po…
Browse files Browse the repository at this point in the history
…sition (APSL#97)
  • Loading branch information
alvaromb authored Feb 3, 2017
1 parent 3f768ed commit 3cc5684
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/KeyboardAwareListView.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ const KeyboardAwareListView = React.createClass({
keyboardDismissMode='interactive'
contentInset={{bottom: this.state.keyboardSpace}}
showsVerticalScrollIndicator={true}
scrollEventThrottle={0}
{...this.props}
scrollEventThrottle={8}
onScroll={e => {
this.handleOnScroll(e)
this.props.onScroll && this.props.onScroll(e)
Expand Down
2 changes: 1 addition & 1 deletion lib/KeyboardAwareScrollView.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ const KeyboardAwareScrollView = React.createClass({
keyboardDismissMode='interactive'
contentInset={{bottom: this.state.keyboardSpace}}
showsVerticalScrollIndicator={true}
scrollEventThrottle={0}
{...this.props}
scrollEventThrottle={8}
onScroll={e => {
this.handleOnScroll(e)
this.props.onScroll && this.props.onScroll(e)
Expand Down

0 comments on commit 3cc5684

Please sign in to comment.