Fixed bug where clicking map would make the invisible/hidden detail overlay flash visible and then animate to invisible again