3

im using iSroll4 on a div that has Lis inside it, and each LI has a link. when i start scrolling the click events of the inner LIs is triggered. i want the click events to keep available but not while scrolling.

help please.. thnx :)

HasanAboShally
  • 18,459
  • 7
  • 30
  • 34

1 Answers1

4
$('.link').on('click', function() {
  if (myScroll.moved) return; 
  // add click functionality here
});

From iScroll forum https://groups.google.com/forum/#!topic/iscroll/0ai6QzTtbJE

IziFortune
  • 99
  • 5