I have code that selects text when the user clicks the p tag, but I don't want to do this when the user selects the text inside. Is it possible to detect a click, but without dragging?
I have a simple code:
$('.conteiner').on('click', 'p.xxx', function() { $(this).selection(); });
But the click is executed even if I drag between mousedown and mouseup. Selection is a plugin that selects text using getSelection or Rage.
javascript jquery javascript-events mouseevent
jcubic
source share