Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Fixed deselection after off click from input selection

Taylor Gunnoe05ca232efa32
diff --git a/web/js/date/wv.date.timeline.js b/web/js/date/wv.date.timeline.js
index 4a4c4ca31..2da36b6e0 100644
--- a/web/js/date/wv.date.timeline.js
+++ b/web/js/date/wv.date.timeline.js
@@ -1671,6 +1671,14 @@ wv.date.timeline = wv.date.timeline || function(models, config, ui) {
if ( event.type !== "focusout" ) {
selected.select();
} else {
+ if (document.selection)
+ {
+ document.selection.empty();
+ }
+ else
+ {
+ window.getSelection().removeAllRanges();
+ }
selected.parent().animate({
borderColor: "rgba(40, 40, 40, .9)"
}, {
@@ -1679,7 +1687,6 @@ wv.date.timeline = wv.date.timeline || function(models, config, ui) {
}
});
updateTime();
- selected.select();
}
}
}