Delay on active state for touch devices

539 Views Asked by At

I'm using the following code to allow ":active" state for touchevents..

document.addEventListener("touchstart", function() {},false);

It works perfect, but is there a way to put a short delay on this if you are scrolling? I am trying to avoid the items in the list from being ":active" if you are just scrolling. For example.. Think of the "Contacts" list on your phone. If you scroll, the name/item does not trigger the ":active" style until you specifically press on the item.

1

There are 1 best solutions below

0
On