Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

add to conditonal for mouseOut to prevent undefined

Ed Plato1af1f683e2a4
diff --git a/web/js/components/map/ol-coordinates.js b/web/js/components/map/ol-coordinates.js
index cff47ee33..50cc58752 100644
--- a/web/js/components/map/ol-coordinates.js
+++ b/web/js/components/map/ol-coordinates.js
@@ -50,7 +50,7 @@ class OlCoordinates extends React.Component {
}
mouseOut(event) {
- if (event.relatedTarget) {
+ if (event.relatedTarget && event.relatedTarget.classList) {
let cl = event.relatedTarget.classList;
// Ignore when the mouse goes over the coordinate display. Clearing
// the coordinates in this situation causes a flicker.