I've looked at the other answers on this site and have found none of any use to me. If you think I might have overlooked something, let me know!
Anyway, I would like to create a range based on mouse position. I would like it to work exactly the way it works for left mouse button. You click in the DOM, it drops a text cursor, you drag, and the range object updates the selection object live and you get your "selection".
I, however, cannot find a way to get it to work with any other mouse button or keyboard key.
What is LMB doing that gives it this ability? I can't seem to find the answer anywhere.
Any suggestions?
On a similar note, would it be possible to develop something that could have accuracy down to the character in a childNode of a DOM element parentNode, so that as you mouse over, the character is displayed in console?