I cannot find any examples on github or when I search on Google to detect click events for the Zynga scroller.
For example, starting with Pull-to-refresh , it contains this code:
if ('ontouchstart' in window) { container.addEventListener("touchstart", function(e) { scroller.doTouchStart(e.touches, e.timeStamp); e.preventDefault();
Since we always prevent Default, I can never click a line in a scrollable list. If I delete this line, I can click, but then scrolling does not work.
Is there any other way to detect a click?
(It works on a computer, but not on a smartphone with an ontouchstart event (iPhone 4s))
source share