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

iScroll events onScroll not work #39

Closed
gmonking opened this issue Dec 6, 2016 · 4 comments
Closed

iScroll events onScroll not work #39

gmonking opened this issue Dec 6, 2016 · 4 comments

Comments

@gmonking
Copy link

gmonking commented Dec 6, 2016

  <ReactIScroll iScroll={iScroll} options={{mouseWheel: true}} onScroll={function(){console.log(1)}} >
    <div>
      ...
    </div>
  </ReactIScroll>

the onScroll callback function not work,

@schovi
Copy link
Owner

schovi commented Dec 15, 2016

Hi, do you have iscroll probe version? It is only one with onacroll support

@Inoir
Copy link

Inoir commented Jan 16, 2017

you need to define the probe type you want to use in the options. Had same issue and only that worked for me.

so in your example:

<ReactIScroll iScroll={iScroll} options={{mouseWheel: true, probeType: 1}} onScroll={function(){console.log(1)}} > <div> ... </div> </ReactIScroll>

@schovi
would be nice if there is an possibilty to tell iscroll to use at least type 1 if there is the probe version passed in react component?!

@Joudee
Copy link

Joudee commented Jan 18, 2017

@Inoir It didn't work!

@schovi
Copy link
Owner

schovi commented Jan 18, 2017

@Inoir updated README with this info https://github.com/schovi/react-iscroll/blob/master/README.md#faqs

Will think if I can do the checking.

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

4 participants