[OpenLayers-Commits] r11611 - trunk/openlayers/examples

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Thu Mar 3 09:40:30 EST 2011


Author: crschmidt
Date: 2011-03-03 06:40:29 -0800 (Thu, 03 Mar 2011)
New Revision: 11611

Modified:
   trunk/openlayers/examples/multitouch.html
Log:
Also listen on touchmove, since apparently evt.touches doesn't get multiple
touches on down?


Modified: trunk/openlayers/examples/multitouch.html
===================================================================
--- trunk/openlayers/examples/multitouch.html	2011-03-02 13:23:17 UTC (rev 11610)
+++ trunk/openlayers/examples/multitouch.html	2011-03-03 14:40:29 UTC (rev 11611)
@@ -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";
     }    



More information about the Commits mailing list