fix movestart, move, moveend sequence on pan with animate:false

This commit is contained in:
Éric Lemoine
2012-04-23 23:57:48 +02:00
parent f36fd5f0d1
commit c6c1bf1f77
2 changed files with 34 additions and 3 deletions

View File

@@ -1634,8 +1634,10 @@ OpenLayers.Map = OpenLayers.Class({
this.panTo(newCenterLonLat);
} else {
this.moveTo(newCenterLonLat);
this.dragging = false;
this.events.triggerEvent("moveend");
if(this.dragging) {
this.dragging = false;
this.events.triggerEvent("moveend");
}
}
}
}