Thank you for your reply but I don't think that is what I am looking for.
Probably I should describe it better. In some applications (PDF viewers for example) users can activate a mode in which all text that they move their Apple Pencil over becomes highlighted.
Im my web application, I use the standard selection and range (see https://developer.mozilla.org/en-US/docs/Web/API/Selection) to trigger the highlight. Therefor I would like to allow users to create those ranges by simply moving the pen over the text rather than holding it down for a moment at the beginning.