Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Undo rubberband state when a user 'clicks' (not drag) outside the selected area

Tilak Joshifdfac2ae7ca8
diff --git a/js/rubberBand.js b/js/rubberBand.js
index 7779a8262..21b12b3a5 100644
--- a/js/rubberBand.js
+++ b/js/rubberBand.js
@@ -202,6 +202,7 @@ SOTE.widget.RubberBand.prototype.draw = function() {
bgOpacity: 0.3,
onSelect: function(c){SOTE.widget.RubberBand.handleChange(c, self);},
onChange: function(c){SOTE.widget.RubberBand.handleChange(c, self);},
+ onRelease: function(c){SOTE.widget.RubberBand.toggle({data: {self:self} }); },
fullScreen: true
});