I’ve a series of list items. On an iphone (touch device), as a user touches and moves his finger across the screen, I want to capture all the html li elements that he has touched.
So how do I get that? Say I want to get all the ids of those elements and alert is when the touch ends.
I tried with jQuery Mobile with “swipe’ event but only the first one to be touched, that too if the ‘touch’ starts from that particular element shows up.
Not sure if this will work on a mobile device unless you disable scrolling.
Works for desktop and kinda on my iPhone
JS
HTML
I’m sure you could bind multiple events and log them to find the right combo you’re looking for.