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

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Thu Sep 15 11:40:52 EDT 2011


Author: tschaub
Date: 2011-09-15 08:40:50 -0700 (Thu, 15 Sep 2011)
New Revision: 12371

Modified:
   trunk/openlayers/examples/mobile-drawing.js
Log:
Enabling kinetic dragging on the mobile draw example.

Modified: trunk/openlayers/examples/mobile-drawing.js
===================================================================
--- trunk/openlayers/examples/mobile-drawing.js	2011-09-15 12:27:56 UTC (rev 12370)
+++ trunk/openlayers/examples/mobile-drawing.js	2011-09-15 15:40:50 UTC (rev 12371)
@@ -48,7 +48,11 @@
             -20037508.34, -20037508.34, 20037508.34, 20037508.34
         ),
         controls: [
-            new OpenLayers.Control.TouchNavigation(),
+            new OpenLayers.Control.TouchNavigation({
+                dragPanOptions: {
+                    enableKinetic: true
+                }
+            }),
             new OpenLayers.Control.ZoomPanel(),
             toolbar
         ],



More information about the Commits mailing list