I have code that select text when user click the p
tag but I don't want to do that when user select the text inside. Is it possible to detect click but without drag?
I have simple code like this:
$('.conteiner').on('click', 'p.xxx', function() {
$(this).selection();
});
But click is executed even if I drag between mousedown and mouseup. The selection is a plugin that select text using getSelection or Range.