Skip to content


Subversion checkout URL

You can clone with
Download ZIP
A polyfill to gap missing multitouch functionality in HTML5 apps on Android 2.x
branch: touchVisualisa…

This branch is 7 commits ahead, 182 commits behind Philzen:stable

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.

This piece of code might be what you have been long searching for, if

  • you want to develop an HTML5 app
  • you want it to work on Android 2.x
  • you'd like it to be capable to track more than one fingertap. The most well-known use for this is the pinch zoom - but you could also be developing a cool HTML5-based game that needs some two- (or more) -finger-gestures.

Many people are surprised to learn this doesn't work on many (most?) Android 2.x devices. If all of the above applies to you and you have been going crazy (like me) on the question why the heck it's not enabled on those phones, you may hopefully smile again because you have found


A Polyfill example to enable multitouch functionality in Android 2.x HTML 5 Apps

WebView MultiTouch PolyFill (WMP) is basically a few lines of Android java code which register touch events on an Android.WebKit.View and pass them on to an HTML Apps' DOM via javascript calls. The example project compiles against Android 2.3.3 (API 10), but the polyfill technique employed should work on all Android 2.x Devices. That being said - i personnally only own a API 10 device, so it'd be great if you folks out there could test on other (earlier) devices as well.


v0.1 (in a couple of days) Is just going to be the proof of concept, a small running HTML5 recognizing more than one tap at once

v0.x (over time) Should be raising all standard events [] one (as in "Developer" or "My OSM Map") would nowadays expect to happen in the browser.

v1.0 (when many people have tested it on many many different android 2.x phones) The final first version of the WebClient class

Something went wrong with that request. Please try again.