It actually doesn’t
The mobile screenshot is misleading…
We’re going to assume that most users use mouse to highlight the content on the web, thus we bind this function on the
mouseupevent. Mobile devices will usually have their own contextual menus on text selection, so we’re focusing on the web for this tutorial.