removing box when deactivating the handler. p=jorix, r=me (closes #3198)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11729 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user