[OpenLayers-Commits] r11426 - sandbox/cmoullet/openlayers/examples

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Thu Feb 24 10:57:52 EST 2011


Author: cmoullet
Date: 2011-02-24 07:57:52 -0800 (Thu, 24 Feb 2011)
New Revision: 11426

Modified:
   sandbox/cmoullet/openlayers/examples/browser.js
Log:
Add touches inspecting

Modified: sandbox/cmoullet/openlayers/examples/browser.js
===================================================================
--- sandbox/cmoullet/openlayers/examples/browser.js	2011-02-24 15:52:03 UTC (rev 11425)
+++ sandbox/cmoullet/openlayers/examples/browser.js	2011-02-24 15:57:52 UTC (rev 11426)
@@ -192,7 +192,11 @@
 function gesturestart(e) {
     if (document.getElementById("gesturestartID").checked) {
         var box = document.getElementById("box");
-        log(e.type, inspect(e));
+        var result = inspect(e);
+        for (var i = 0; i < e.touches.length; i++) {
+            result = result + inspect(e.touches[i]);       
+        }
+        log(e.type, result);
         //logDetails(inspect(e.touches.item(0)));
         if (e.preventDefault) e.preventDefault();
     }



More information about the Commits mailing list