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

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Tue Feb 22 09:11:49 EST 2011


Author: erilem
Date: 2011-02-22 06:11:49 -0800 (Tue, 22 Feb 2011)
New Revision: 11236

Modified:
   trunk/openlayers/examples/mobile.js
Log:
mobile example - set interval to 0 in the drag handler, no functional change

Modified: trunk/openlayers/examples/mobile.js
===================================================================
--- trunk/openlayers/examples/mobile.js	2011-02-22 14:02:44 UTC (rev 11235)
+++ trunk/openlayers/examples/mobile.js	2011-02-22 14:11:49 UTC (rev 11236)
@@ -19,7 +19,12 @@
             -20037508.34, -20037508.34, 20037508.34, 20037508.34
         ),
         controls: [
-            new OpenLayers.Control.TouchNavigation({dragPanOptions: {enableKinetic: true}}),
+            new OpenLayers.Control.TouchNavigation({
+                dragPanOptions: {
+                    interval: 0, // non-zero kills performance on some mobile phones
+                    enableKinetic: true
+                }
+            }),
             new OpenLayers.Control.Attribution(),
             new OpenLayers.Control.DrawFeature(
                 vector, OpenLayers.Handler.Point, {id: "point-control"}



More information about the Commits mailing list