use moveTo when dragPanMap object is not available. r=crschmidt (closes #3135)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@11580 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
ahocevar
2011-02-28 12:33:52 +00:00
parent 82a64751af
commit be1adc5d69

View File

@@ -225,6 +225,8 @@ OpenLayers.Layer.EventPane = OpenLayers.Class(OpenLayers.Layer, {
if (this.dragPanMapObject) {
this.dragPanMapObject(dx, -dy);
} else {
this.moveTo(this.map.getCachedCenter());
}
},