Reputation: 4530
Using iScroll 5 for scrolling a list of elements. I am intending to handle click event on the list item but the problem is, every time I scroll (not click,) click handler is getting called too. Kindly suggest, how to stop click event being invoked while scrolling.
I am able to replicate the issue on jsFiddle here.
Here is how I am initializing iScroll object,
var scroll = new IScroll('#scroller', {
bounce: false,
momentum: true,
mouseWheel: true,
keyBindings: true,
probeType: 3
});
Upvotes: 1
Views: 396
Reputation: 4530
I figured it out. Using 'click: true
' in configuration fixes the problem.
Here is the jsfiddle link where problem is fixed.
Upvotes: 1