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

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -