schovi / react-iscroll

React component for wrapping iScroll http://iscrolljs.com/
MIT License
236 stars 60 forks source link

iscroll-probe onScroll Event not work #26

Closed 2857 closed 8 years ago

2857 commented 8 years ago

onScroll event not work . and i bind the event correctly, except onScroll, other events work correctly

            <ReactIScroll iScroll={iScroll}
                  options={this.props.options}
                  onScrollStart={::this.onScrollStart}
                  onScrollCancel={::this.onScrollCancel}
                  onScrollStart={::this.onScrollStart}
                  onScroll={::this.onScroll}
                  onScrollEnd={::this.onScrollEnd}>
2857 commented 8 years ago

I knew the reason!!! cuz i didn't set the probetype

probeType: 2 always executes the scroll event except during momentum and bounce. This resembles the native onScroll event.

schovi commented 8 years ago

@aliencyl7 Thanks for self resolving :)