Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Fixed annoying selection issues when using arrows on timeline

Taylor Gunnoe209853764f25
diff --git a/src/css/new-ui.css b/src/css/new-ui.css
index 1b0103788..1122bed68 100644
--- a/src/css/new-ui.css
+++ b/src/css/new-ui.css
@@ -75,9 +75,14 @@
#timeline header .button-input-group-selected{
border-color:#fff;
}
-#timeline header input::-webkit-selection {color:#1a1a1a;background:#fff;}
#timeline header div{
display:inline-block;}
+.button-action-group{
+ -moz-user-select: none;
+ -webkit-user-select: none;
+ -ms-user-select: none;
+}
+
#timeline header svg {
width:40px;
height:60px;
diff --git a/src/js/date/wv.date.timeline.js b/src/js/date/wv.date.timeline.js
index ccbf07319..e0182e8a0 100644
--- a/src/js/date/wv.date.timeline.js
+++ b/src/js/date/wv.date.timeline.js
@@ -52,7 +52,7 @@ wv.date.timeline = wv.date.timeline || function(models, config) {
};
//subtract the datepicker from the width of the screen
- width = window.innerWidth - $("#timeline header").outerWidth() - 30;
+ width = window.innerWidth - $("#timeline header").outerWidth() - 20;
height = 60 - margin.top - margin.bottom;
//var currentDate = new Date(data2[0].date);
var dateTimestamp;
@@ -139,7 +139,7 @@ wv.date.timeline = wv.date.timeline || function(models, config) {
var redraw = function(){
//resizing window redrawing goes here
- width = window.innerWidth - $("#timeline header").outerWidth() - 30;
+ width = window.innerWidth - $("#timeline header").outerWidth() - 20;
d3.select('#timeline footer svg')
.attr('width', width + margin.left + margin.right);