After https://gerrit.wikimedia.org/r/#/c/286157 do the following:
- Place the cursor outside a link so you get a collapsed selection with a blue dot handle.
- Drag the collapsed selection inside a link
- Observe the document jumped to keep your link visible after the context appeared.
We considered suppressing the context menu until the user let go of the selection but it turns out that there selection dragging doesn't fire touchstart/end events (just selectionchange) so there is absolutely no way to tell when this happens.
The only possible solution is therefore to ensure that the context menu doesn't interfere with the position of the surface.