schovi / react-iscroll

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

Can't scroll if I add the image tag into the scroll wrapper #44

Open cnt1992 opened 7 years ago

cnt1992 commented 7 years ago

Just like the title , when I type the code like this:

<ReactIScroll iScroll={iScroll}
                        options={iScrollOptions}
                        onRefresh={this._handleScrollRefresh}
                        onScrollStart={this._handleScrollStart}
                        probeType={2}
                        onScrollEnd={this._handleScrollEnd}>                        
  <div style={{width: "100%"}}>
    <ul>
      <li><img src="xxx" alt=""/></li>
      <li><img src="xxx" alt=""/></li>
      <li><img src="xxx" alt=""/></li>
    </ul>
  </div>
</ReactIScroll>

and then I can't scroll, could you tell me how to fixed it? thx