diff --git a/extensions/mentions/js/src/forum/addPostMentionPreviews.js b/extensions/mentions/js/src/forum/addPostMentionPreviews.js index dfe78afb2..76e4400da 100644 --- a/extensions/mentions/js/src/forum/addPostMentionPreviews.js +++ b/extensions/mentions/js/src/forum/addPostMentionPreviews.js @@ -103,7 +103,14 @@ export default function addPostMentionPreviews() { } }; - $this.on('touchstart', e => e.preventDefault()); + // On a touch (mobile) device we cannot hover the link to reveal the preview. + // Instead we cancel the navigation so that a click reveals the preview. + // Users can then click on the preview to go to the post if desired. + $this.on('touchend', e => { + if (e.cancelable) { + e.preventDefault(); + } + }); $this.add($preview).hover( () => {