Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the onScroll event doesn't fire though code 'var iScroll = require('iscroll/build/iscroll-probe')' is added #51

Closed
jxintang opened this issue Mar 8, 2017 · 2 comments

Comments

@jxintang
Copy link

jxintang commented Mar 8, 2017

when I scroll the scroller, the alert doesn't fire,so wired. below is the code

import ReactIScroll from 'react-iscroll';
var iScroll = require('iscroll/build/iscroll-probe');
import React from 'react';
export default class TabelListView extends React.Component {
    onScroll(iScroll) {
        alert('t')
   }
   render(
      <ReactIScroll
                    ref="iScroll"
                    iScroll={iScroll}
                    onScroll={this.onScroll.bind(this)}>
      {...content}
    </ReactIScroll>
  )
}
@jxintang jxintang closed this as completed Mar 8, 2017
@sinn1
Copy link

sinn1 commented Aug 2, 2017

Having same problem. Also using iscroll-probe and event isn't firing.

@jxintang how did you fix this?

On version 2.0.3 with iScroll v5.2.0

@supostat
Copy link

You should add probeType:2 in your options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants