$('#element').each(function() {
var timeout,
longtouch;
$(this).bind('touchstart', function() {
timeout = setTimeout(function() {
longtouch = true;
}, 1000);
}).bind('touchend', function() {
if (longtouch) {
}
longtouch = false;
clearTimeout(timeout);
});
});
jsFiddle .
The violin works with a long click.
source
share