views:

1330

answers:

4

On iPhone, iPod touch and (presumably) iPad, Apple has multi-touch event handling available via JavaScript in Mobile Safari. I know the Nexus One recently added multi-touch support via an update, and I believe webOS is also multi-touch enabled. Do Android 2.1 and/or webOS have access to multi-touch in the browser, or is this currently exclusive to Apple devices?

A: 

It depends on the browser. The browser on the HTC Hero, which currently runs Android 1.5 and HTC's customised TouchFlo interface, has always had multitouch. The 'Dolphin' browser has also had multitouch since before the Android 2 update. That said, I've never tried using the multitouch for anything but 'pinch zoom' so it might not work with a specific Javascript or something like that.

Steve H
+1  A: 

On Palm webOS, you can get multiple touch events. You can receive up to five touch points at one time.

If you're doing native development using the PDK, handling multiple touches is described at http://developer.palm.com/index.php?option=com_content&view=article&id=1980&Itemid=337. Each finger is tracked as a separate mouse in the SDL events.

For Javascript developers using the standard SDK, there events that are sent to indicate that two fingers are in use. "gesturestart" fires when the user puts 2 fingers on the screen, usually to pinch or rotate, "gesturechange" fires when 1 or both fingers move on the screen, and "gestureend" fires when the fingers are lifted from the screen. These aren't well documented on the Palm developer site, but they're used in the mojomatters sample code.

Edit: looking at your question again, there is no "touch" event support in the browser on WebOS for applications delivered through web sites.

Ben Combee
+8  A: 

The best master tracking for touch events (other than multi-touch! - answered above) appears to be:

http://quirksmode.org/mobile/tableTouch.html

Right now, Android 2.1 gets you pinch/zoom, but that's it. There's no fine-grained multi-touch tracking, like you get on iPhone.

Michael Mullany
This is the closest thing to an answer I've seen - I've managed to test on a Nexus One with the multi-touch update on my own app, and they do not yet support multitouch events via Javascript.
Rufo Sanchez
A: 

It depends on the device. But I think the current Android 2.x device got all multitouch.

Sebi