Interactive interface for browsing global, full-resolution satellite imagery
fix dragger tooltip position conditional for display
Edward Plato789ec195e159
diff --git a/web/js/components/timeline/timeline-axis/date-tooltips.js b/web/js/components/timeline/timeline-axis/date-tooltips.jsindex 73d264c36..dadb4028d 100644--- a/web/js/components/timeline/timeline-axis/date-tooltips.js+++ b/web/js/components/timeline/timeline-axis/date-tooltips.js@@ -48,7 +48,7 @@ class DateToolTip extends PureComponent {toolTipDate = hasSubdailyLayers ? draggerTime.split('T').join(' ') : draggerTime.split('T')[0];// toolTipDayOfYear = moment.utc(draggerTime).dayOfYear();toolTipDayOfYear = getDaysInYear(draggerTime);- toolTipDisplay = toolTipLeftOffest > -54 && toolTipLeftOffest < axisWidth - 54 ? 'block' : 'none';+ toolTipDisplay = position > -49 && position < axisWidth - 49 ? 'block' : 'none';} else if (showHoverToolTip) { // handle hover tooltiptoolTipLeftOffest = hasSubdailyLayers ? leftOffset - 136 : leftOffset - 84;toolTipDate = hasSubdailyLayers ? hoverTime.split('T').join(' ') : hoverTime.split('T')[0];