open latest marker on mobile devices

This commit is contained in:
2019-05-03 22:39:06 +02:00
parent 73a7322a6e
commit e64fac898f

View File

@@ -347,6 +347,9 @@ function initSpotMessages(aoMessages, aoTracks) {
offset: new L.Point(0, -30) offset: new L.Point(0, -30)
}); });
//Open tooltip on latest message in mobile mode
if(iKey === 0 && self.vars(['project', 'mode']) == self.consts.modes.blog && (!oMsg.pics || oMsg.pics.length < 3) && self.tmp('mobile')) oMarker.openPopup();
oSpot.tmp(['markers', oMsg.id_message], oMarker); oSpot.tmp(['markers', oMsg.id_message], oMarker);
}); });
} }