Is there a way to prevent text selection on double click while still allowing selection on mouse drag?
Whenever I try to remove selection on dblclick
or mouseup
, it flashes, which is not the desired outcome as shown in this jsfiddle.
UPD: I am not looking to disable selection entirely; I only want to prevent it on double click events.