On Sep 9, 9:55 am, lawrencejob <[EMAIL PROTECTED]> wrote:
> Sorry for the thread reincarnation


>, but I had a client wanting similar
> recently.

Similar to what?  Do you mean trying to determine if  touch events are
supported?  Here's a sample function that does just that:

  var touchSupported = (function () {
    if (document && document.createEvent) {
      try {
         return true;
       } catch (e) {
         return false;

The focus here is on a detection technique, use it however suits.

> While it works perfectly, it gets incredibly choppy when
> doing any major animation,

If you are using Prototype.js + Scriptaculous, that's hardly

> especially those that include movement of
> multiple elements. Also, there can be bugs when dragging, and you'll
> eant to seriously compress the JS....

And seriously optimise it for performance.

You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 

Reply via email to