Sluggish button clicks on the iPhone

44 views
Skip to first unread message

nurikabe

unread,
May 20, 2009, 10:16:10 PM5/20/09
to phonegap
Has anyone else experienced this? There seems to be a slight but
noticeable pause between when I tap on a button or a link and when the
JavaScript acts on it. Par for the course? Or maybe related to the
JQTouch library I'm using?

Michael Nachbaur

unread,
May 21, 2009, 12:54:53 AM5/21/09
to phonegap
It's par for the course for any browser, desktop or mobile. Click
needs to fire after onmousedown, onmouseup, and a certain built-in
delay. So it always takes longer. If you want events to happen
faster, fire an event based on ontouchstart, instead of onclick.

Paul Prescod

unread,
May 21, 2009, 2:03:10 AM5/21/09
to phon...@googlegroups.com

nurikabe

unread,
May 21, 2009, 11:58:08 AM5/21/09
to phonegap
Thanks guys. Exactly what I was looking for.

On May 21, 2:03 am, Paul Prescod <pres...@gmail.com> wrote:
> Some info about this issue:http://cubiq.org/remove-onclick-delay-on-webkit-for-iphone/9
>
Reply all
Reply to author
Forward
0 new messages