the 'moveend' event was not getting properly triggered on the end of a drag... because the setCenter() was not passing a new center or zoom. move it outside the if clause and all is well.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@823 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-06-28 23:44:24 +00:00
parent b789fe22fd
commit 43a2f03b2b

View File

@@ -466,9 +466,10 @@ OpenLayers.Map.prototype = {
this.events.triggerEvent("move");
if (zoomChanged) { this.events.triggerEvent("zoomend"); }
if (!minor) { this.events.triggerEvent("moveend"); }
}
// even if nothing was done, we want to notify of this
if (!minor) { this.events.triggerEvent("moveend"); }
},
/** This function takes care to recenter the layerContainerDiv