Volcanoes were still erupting on the moon when dinosaurs roamed Earth, new research suggests.