[OpenLayers-Commits] r11580 - trunk/openlayers/lib/OpenLayers/Layer

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Mon Feb 28 07:33:55 EST 2011


Author: ahocevar
Date: 2011-02-28 04:33:52 -0800 (Mon, 28 Feb 2011)
New Revision: 11580

Modified:
   trunk/openlayers/lib/OpenLayers/Layer/EventPane.js
Log:
use moveTo when dragPanMap object is not available. r=crschmidt (closes #3135)

Modified: trunk/openlayers/lib/OpenLayers/Layer/EventPane.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Layer/EventPane.js	2011-02-28 10:19:23 UTC (rev 11579)
+++ trunk/openlayers/lib/OpenLayers/Layer/EventPane.js	2011-02-28 12:33:52 UTC (rev 11580)
@@ -225,6 +225,8 @@
         
         if (this.dragPanMapObject) {
             this.dragPanMapObject(dx, -dy);
+        } else {
+            this.moveTo(this.map.getCachedCenter());
         }
     },
 



More information about the Commits mailing list