Skip to content

Commit ae7b09d

Browse files
authored
Merge pull request #22 from yucheng1207/master
Update ScrollView.web.js
2 parents 7e76901 + 39a5fe4 commit ae7b09d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Libraries/ScrollView/ScrollView.web.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,11 @@ class ScrollView extends Component {
159159

160160
let handleScroll = () => {};
161161
if (this.props.scrollEventThrottle && this.props.onScroll) {
162-
handleScroll = throttle(this.handleScroll, this.props.scrollEventThrottle ? 1000 / this.props.scrollEventThrottle : 1000);
162+
if (this.props.scrollEventThrottleDisable) {
163+
handleScroll = this.handleScroll;
164+
} else {
165+
handleScroll = throttle(this.handleScroll, this.props.scrollEventThrottle ? 1000 / this.props.scrollEventThrottle : 1000);
166+
}
163167
}
164168

165169
let props = {

0 commit comments

Comments
 (0)