html - Stop list item onclick event firing when when scrolling -
i have scrolling unordered list, part of html5 app on touchscreen device. problem when user scrolling release there finger list clicks element user used scroll. there way change onclick behavior fires if user has clicked , not scrolled?
<ul class="search"> <a onclick="event()"><li>name</li></a> <a onclick="event()"><li>name</li></a> <a onclick="event()"><li>name</li></a> </ul>
any appreciated can't find documentation on online.
don't think click think mousedown mousemove mouseup down triggers click. you'll want minimum amount of move allowed before trigger click.
Comments
Post a Comment