Clicking end of a line with a link sometimes puts cursor at the wrong location. This does not happen every time, but regularly enough to be an issue multiple times a day.
Hereās a short repro video where the behavior occurs twice (AVI format as that is the only allowed extension I saw for this): 2019-10-01 DL clicking link.avi (568.6 KB)
You can see, since mouse clicks are captured in the video, that this is not a case of double-clicking by accident, and approximately the same area is clicked each time.
To be clear, expected is this, text cursor at end of unformatted text:
I donāt think I understand why that is. As per the repro video, at the time of the click, the text is formatted, and this operation usually works, I would say 80% of the time. To me that means itās not a capabilities issue like WYSIWYG, but just a timing one instead. Itās like the code thread setting the cursor position doesnāt wait for the one detecting click location to complete. If I were solving it, Iād be debugging timing and inputs of those 2 pieces of logic.
After carefully looking at the video a few times, it looks like the position is messed up when the cursor is moved ever so slightly while held down. So a quick mouse release should help. At 00:11~00:12, you can see that the cursor was placed in the right position for a split second.
Our guess is that if you moved your mouse after mousedown, the mousedown action will focus on the item, expanding the markdown, while the mousemove would position the cursor again. At this time, the markdown is already expanded, and the caret is unfortunately set directly under the mouse cursor.