There is a 300 mSec delay in OnClick events, but AFAIK, no delay in
ontouchstart.

I have found it necessary to insert   e.preventDefault()  in the
ontouchmove handler in some instances.

Seems this would be a good place for your hide code, too. Instead of
ontouchstart + delay.

If I understand you correctly.

Peter


On Nov 1, 5:29 pm, joel <[email protected]> wrote:
> Hello All,
>
> while trying to implement a dynamic header/footer on an iphone web
> page, I realized that even though on certain devices this would work
> very well, on iphone 3G this would cause some problems.
>
> Indeed the device seems to treat the handler function (hiding the
> header/footer), on touch start (actually I want to hide these elements
> on scroll by the user, so I implemented the behavior on the touchStart
> event) with some delay, so that the hiding would occur only at the
> middle of the scroll action or at the end.
>
> Is this due to an actual delay on the touchStart event itself or is it
> due to the device ?
>
> Any way of reducing this delay according to you ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to