Skip to content

Commit

Permalink
Added right scrollEventThrottle configuration (APSL#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
alvaromb authored Aug 23, 2016
1 parent a2689b1 commit 4526b17
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"env": {
"es6": true,
"jasmine": true,
"node": 1,
"node": 1
},

"plugins": [
Expand Down Expand Up @@ -46,7 +46,7 @@
"window": false,
"XMLHttpRequest": false,
"pit": false,
"FormData": true,
"FormData": true
},

"rules": {
Expand Down Expand Up @@ -75,7 +75,6 @@
"use-isnan": 1,
"valid-jsdoc": 0,
"valid-typeof": 1,

"block-scoped-var": 0,
"complexity": 0,
"consistent-return": 0,
Expand Down Expand Up @@ -166,7 +165,7 @@
"quote-props": 0,
"semi": 0,
"sort-vars": 0,
"keyword-spacing": 1,
"keyword-spacing": [0, { "before": true }],
"space-in-brackets": 0,
"space-in-parens": 0,
"space-infix-ops": 1,
Expand Down
1 change: 1 addition & 0 deletions lib/KeyboardAwareListView.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const KeyboardAwareListView = React.createClass({
contentInset={{bottom: this.state.keyboardSpace}}
showsVerticalScrollIndicator={true}
{...this.props}
scrollEventThrottle={8}
onScroll={e => {
this.handleOnScroll(e)
this.props.onScroll && this.props.onScroll(e)
Expand Down
1 change: 1 addition & 0 deletions lib/KeyboardAwareScrollView.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const KeyboardAwareScrollView = React.createClass({
contentInset={{bottom: this.state.keyboardSpace}}
showsVerticalScrollIndicator={true}
{...this.props}
scrollEventThrottle={8}
onScroll={e => {
this.handleOnScroll(e)
this.props.onScroll && this.props.onScroll(e)
Expand Down

0 comments on commit 4526b17

Please sign in to comment.