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

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Fri Feb 25 09:19:20 EST 2011


Author: erilem
Date: 2011-02-25 06:19:17 -0800 (Fri, 25 Feb 2011)
New Revision: 11501

Modified:
   trunk/openlayers/examples/mobile-base.js
   trunk/openlayers/examples/mobile-navigation.js
   trunk/openlayers/examples/mobile.js
Log:
100 milliseconds seems to be a good value for drag pan interval on most devices, no functional change (closes #3093)

Modified: trunk/openlayers/examples/mobile-base.js
===================================================================
--- trunk/openlayers/examples/mobile-base.js	2011-02-25 14:14:52 UTC (rev 11500)
+++ trunk/openlayers/examples/mobile-base.js	2011-02-25 14:19:17 UTC (rev 11501)
@@ -34,7 +34,7 @@
             new OpenLayers.Control.Attribution(),
             new OpenLayers.Control.TouchNavigation({
                 dragPanOptions: {
-                    interval: 0, // non-zero kills performance on some mobile phones
+                    interval: 100,
                     enableKinetic: true
                 }
             }),

Modified: trunk/openlayers/examples/mobile-navigation.js
===================================================================
--- trunk/openlayers/examples/mobile-navigation.js	2011-02-25 14:14:52 UTC (rev 11500)
+++ trunk/openlayers/examples/mobile-navigation.js	2011-02-25 14:19:17 UTC (rev 11501)
@@ -14,7 +14,7 @@
         controls: [
             new OpenLayers.Control.TouchNavigation({
                 dragPanOptions: {
-                    interval: 0, // non-zero kills performance on some mobile phones
+                    interval: 100,
                     enableKinetic: true
                 }
             }),

Modified: trunk/openlayers/examples/mobile.js
===================================================================
--- trunk/openlayers/examples/mobile.js	2011-02-25 14:14:52 UTC (rev 11500)
+++ trunk/openlayers/examples/mobile.js	2011-02-25 14:19:17 UTC (rev 11501)
@@ -23,7 +23,7 @@
             new OpenLayers.Control.Attribution(),
             new OpenLayers.Control.TouchNavigation({
                 dragPanOptions: {
-                    interval: 0, // non-zero kills performance on some mobile phones
+                    interval: 100,
                     enableKinetic: true
                 }
             }),



More information about the Commits mailing list