diff --git a/lib/OpenLayers/Handler/Box.js b/lib/OpenLayers/Handler/Box.js index 4250101d6d..4b84825309 100644 --- a/lib/OpenLayers/Handler/Box.js +++ b/lib/OpenLayers/Handler/Box.js @@ -183,7 +183,11 @@ OpenLayers.Handler.Box = OpenLayers.Class(OpenLayers.Handler, { */ deactivate: function () { if (OpenLayers.Handler.prototype.deactivate.apply(this, arguments)) { - this.dragHandler.deactivate(); + if (this.dragHandler.deactivate()) { + if (this.zoomBox) { + this.removeBox(); + } + } return true; } else { return false;