[OpenLayers-Commits] r11416 -
sandbox/ahocevar/layercontainer/lib/OpenLayers
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Thu Feb 24 08:42:40 EST 2011
Author: erilem
Date: 2011-02-24 05:42:39 -0800 (Thu, 24 Feb 2011)
New Revision: 11416
Modified:
sandbox/ahocevar/layercontainer/lib/OpenLayers/Map.js
Log:
get rid of this._draggedByMoveByPx in the Map
Modified: sandbox/ahocevar/layercontainer/lib/OpenLayers/Map.js
===================================================================
--- sandbox/ahocevar/layercontainer/lib/OpenLayers/Map.js 2011-02-24 13:40:02 UTC (rev 11415)
+++ sandbox/ahocevar/layercontainer/lib/OpenLayers/Map.js 2011-02-24 13:42:39 UTC (rev 11416)
@@ -1547,13 +1547,9 @@
animate: true,
dragging: false
});
- if (options.dragging || this._draggedByMoveByPx) {
- this.moveByPx(dx, dy);
- if (options.dragging) {
- this._draggedByMoveByPx = true
- } else {
- delete this._draggedByMoveByPx;
- this.events.triggerEvent("moveend");
+ if (options.dragging) {
+ if (dx != 0 || dy != 0) {
+ this.moveByPx(dx, dy);
}
} else {
// getCenter
More information about the Commits
mailing list