fix movestart, move, moveend sequence on pan with animate:false
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user