[OpenLayers-Commits] r12031 - in trunk/openlayers: examples lib/OpenLayers/Control

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Mon May 30 08:55:17 EDT 2011


Author: erilem
Date: 2011-05-30 05:55:16 -0700 (Mon, 30 May 2011)
New Revision: 12031

Modified:
   trunk/openlayers/examples/mobile-base.js
   trunk/openlayers/examples/mobile-drawing.js
   trunk/openlayers/examples/mobile-layers.js
   trunk/openlayers/examples/mobile-navigation.js
   trunk/openlayers/examples/mobile.js
   trunk/openlayers/lib/OpenLayers/Control/DragPan.js
Log:
sensible defaut for dragpan interval, r=crschmidt (#3317)

Modified: trunk/openlayers/examples/mobile-base.js
===================================================================
--- trunk/openlayers/examples/mobile-base.js	2011-05-28 15:52:37 UTC (rev 12030)
+++ trunk/openlayers/examples/mobile-base.js	2011-05-30 12:55:16 UTC (rev 12031)
@@ -51,7 +51,6 @@
             new OpenLayers.Control.Attribution(),
             new OpenLayers.Control.TouchNavigation({
                 dragPanOptions: {
-                    interval: 100,
                     enableKinetic: true
                 }
             }),

Modified: trunk/openlayers/examples/mobile-drawing.js
===================================================================
--- trunk/openlayers/examples/mobile-drawing.js	2011-05-28 15:52:37 UTC (rev 12030)
+++ trunk/openlayers/examples/mobile-drawing.js	2011-05-30 12:55:16 UTC (rev 12031)
@@ -48,11 +48,7 @@
             -20037508.34, -20037508.34, 20037508.34, 20037508.34
         ),
         controls: [
-            new OpenLayers.Control.TouchNavigation({
-                dragPanOptions: {
-                    interval: 100
-                }
-            }),
+            new OpenLayers.Control.TouchNavigation(),
             new OpenLayers.Control.ZoomPanel(),
             toolbar
         ],

Modified: trunk/openlayers/examples/mobile-layers.js
===================================================================
--- trunk/openlayers/examples/mobile-layers.js	2011-05-28 15:52:37 UTC (rev 12030)
+++ trunk/openlayers/examples/mobile-layers.js	2011-05-30 12:55:16 UTC (rev 12031)
@@ -29,7 +29,6 @@
             new OpenLayers.Control.Attribution(),
             new OpenLayers.Control.TouchNavigation({
                 dragPanOptions: {
-                    interval: 100,
                     enableKinetic: true
                 }
             }),

Modified: trunk/openlayers/examples/mobile-navigation.js
===================================================================
--- trunk/openlayers/examples/mobile-navigation.js	2011-05-28 15:52:37 UTC (rev 12030)
+++ trunk/openlayers/examples/mobile-navigation.js	2011-05-30 12:55:16 UTC (rev 12031)
@@ -14,7 +14,6 @@
         controls: [
             new OpenLayers.Control.TouchNavigation({
                 dragPanOptions: {
-                    interval: 100,
                     enableKinetic: true
                 }
             }),

Modified: trunk/openlayers/examples/mobile.js
===================================================================
--- trunk/openlayers/examples/mobile.js	2011-05-28 15:52:37 UTC (rev 12030)
+++ trunk/openlayers/examples/mobile.js	2011-05-30 12:55:16 UTC (rev 12031)
@@ -23,7 +23,6 @@
             new OpenLayers.Control.Attribution(),
             new OpenLayers.Control.TouchNavigation({
                 dragPanOptions: {
-                    interval: 100,
                     enableKinetic: true
                 }
             }),

Modified: trunk/openlayers/lib/OpenLayers/Control/DragPan.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Control/DragPan.js	2011-05-28 15:52:37 UTC (rev 12030)
+++ trunk/openlayers/lib/OpenLayers/Control/DragPan.js	2011-05-30 12:55:16 UTC (rev 12031)
@@ -32,10 +32,11 @@
     /**
      * Property: interval
      * {Integer} The number of milliseconds that should ellapse before
-     *     panning the map again. Set this to increase dragging performance.
-     *     Defaults to 25 milliseconds.
+     *     panning the map again. Defaults to 1 millisecond. In most cases
+     *     you won't want to change this value. For slow machines/devices
+     *     larger values can be tried out.
      */
-    interval: 25,
+    interval: 1,
     
     /**
      * APIProperty: documentDrag



More information about the Commits mailing list