Also listen on touchmove, since apparently evt.touches doesn't get multiple

touches on down?


git-svn-id: http://svn.openlayers.org/trunk/openlayers@11611 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2011-03-03 14:40:29 +00:00
parent 7827b26a7d
commit 72f2ce5d0e

View File

@@ -14,6 +14,10 @@
box.innerHTML = evt.touches.length;
evt.preventDefault();
});
box.addEventListener("touchmove", function(evt) {
box.innerHTML = evt.touches.length;
evt.preventDefault();
});
if (!(typeof box.ontouchstart != 'undefined')) {
box.style.backgroundColor = "red";
}