open latest marker on mobile devices

This commit is contained in:
2019-05-03 22:39:06 +02:00
parent 5983cab494
commit 5511b28e47

View File

@@ -347,6 +347,9 @@ function initSpotMessages(aoMessages, aoTracks) {
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);
});
}