Is there a way to TouchEndInside in Mobile Safari?
Posted
by
Ken Sykora
on Stack Overflow
See other posts from Stack Overflow
or by Ken Sykora
Published on 2010-12-26T21:13:07Z
Indexed on
2011/01/09
5:53 UTC
Read the original article
Hit count: 294
I'm trying to determine whether a users does a touchupinside in mobile safari for an iPhone web app. So far I've been unsuccessful. touchend event fires regardless of where the touchup event happens on the screen, and I can't seem to discern that the target has changed by anything in the event argument.
Can anyone point me in the right direction on how to capture a touchendinside (vs. touchendoutside) event using javascript?
$('a.arrow').bind('touchend',function(e) {
console.log($(e.srcElement)); //both of these always return the same element
console.log($(e.toElement)); //both of these always return the same element
});
© Stack Overflow or respective owner