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

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Thu Feb 24 12:06:04 EST 2011


Author: cmoullet
Date: 2011-02-24 09:06:04 -0800 (Thu, 24 Feb 2011)
New Revision: 11437

Modified:
   sandbox/cmoullet/openlayers/examples/browser.js
Log:
Gesture has two touches...

Modified: sandbox/cmoullet/openlayers/examples/browser.js
===================================================================
--- sandbox/cmoullet/openlayers/examples/browser.js	2011-02-24 17:03:36 UTC (rev 11436)
+++ sandbox/cmoullet/openlayers/examples/browser.js	2011-02-24 17:06:04 UTC (rev 11437)
@@ -192,6 +192,10 @@
 function gesturestart(e) {
     if (document.getElementById("gesturestartID").checked) {
         var box = document.getElementById("box");
+        var result = inspect(e);
+        for (var i = 0; i < e.touches.item.length; i++) {
+            result = result + inspect(e.touches.item(i));
+        }
         log(e.type, inspect(e));
         //logDetails(inspect(e.touches.item(0)));
         if (e.preventDefault) e.preventDefault();



More information about the Commits mailing list