On Mar 17, 10:05 pm, lol <[email protected]> wrote: > webview always answers onmousedown (js) after your finger leave up > from the screen, so onmousedown is just like onclick. So how can > webview listen to onTouch event so that it can answer the onmousedown > event immediataly when you've touched the screen?
Touch devices have different semantics. They simulate the onmousedown/onmouseup events for backward compatibility, but you really can't assume they will work the same way. For example, how would you scroll a webview if it replied to the initiation of every touch instantly? The touch, stroke, lift has come to be known as a scrolling gesture, and the web page should not receive any onmousedown/onmouseup events. If you touch and lift without stroking, only then can the system know you're not trying to scroll, and it offers the onmousedown/ onmouseup events at that time. -- You received this message because you are subscribed to the Google Groups "Android Developers" 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/android-developers?hl=en

