I have an input field that looks like this:
<input id="test" value="abdefg" />
I would like a jQuery event that detects if I drag a text around within the input field. With drag I mean that you first select ab and drag that selection so it ends up after the g.
Is it possible to detect stuff like this?
I don’t know of any specific event that is triggered when text is dragged. But it should be possible to just save the value of the field on mousedown and then compare it to the new value of the field when the mouseup event is triggered. If the value has changed, something was dragged.
Or am I missing something here?