Touch/mouse event processing in Android's browser

by ...Max... » Wed, 22 Oct 2008 09:23:07 GMT


Sponsored Links
 Is there any way to process the messages generated by the touch events
in Android's version of WebKit? On iPhone, this is done with
additional events (ontouchstart, ontouchend, ontouchmove). I
understand these are not available in Android. I have tried (on the
emulator) monitoring the onmousedown, onmouseup and onmousemove which
are implemented in base WebKit and the results were not encouraging:

- Clicking and releasing the mouse without moving it generates
onmousedown followed by onmouseup but ONLY when the mouse button is
released
- Clicking, holding for a short period of time, moving and then
releasing generates a sequence of onmousemove, onmousedown, onmouseup
(in that order) again, ONLY when the button is released
- Clicking, moving immediately and releasing does not generate any
events

This is clearly not enough for any kind of touch-based UI. Is there
some provision in the DOM, or a <meta> tag for capturing the missing
events?

Thanks in advance,
...Max...

--~--~---------~--~----~------------~-------~--~----~



Touch/mouse event processing in Android's browser

by csvy » Sat, 29 Nov 2008 16:30:50 GMT


 Has anyone made any progress on this?  I skimmed through the Webkit
source used in Android, but I couldn't find any non-standard events
(although it is extraordinarily possible that I missed something).

I really need to be able to get touch events and this seems like a
huge omission...




--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. how to set list item selected???

Hi,

Can any one tell me how can I display a list  in which 1 list item
always selected (highlights by any color or transparent strip ) by
default ie, the initial item of the list is always highlighted.

Eg. In mobiles and TV

Thank you

-- 

2. How to Build a Library and Link to the Android Kernel



No, don't do that, it is not the correct implementation.


I do not know, ask on the android-platform mailing list as this
is a platform-specific problem, not a kernel issue.

good luck,

greg k-h

-- 
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: 

3. back button pressed while in an application and go back to the home screen

4. How to Build a Library and Link to the Android Kernel

5. Android Eclair -- hangs after gralloc/mapFrameBufferLocked

6. Android Sensors

7. Broadcast between desktop and simulator application in WIFI