Fix: Cancel link click if triggered as part of text selection

Prevent a click if the user select content in a topic and release the mouse over a link.

https://meta.discourse.org/t/selecting-a-link-results-in-it-being-opened/14846
Merge pull request #2795 from lidlanca/fix-link-release

Fix: Cancel link click if triggered as part of text selection