I want users to be able to click on an element and also highlight the same element. If they click it should behave like a click but if they mousedown and select some text it should not behave like a click (since that is not a click). jQuery fires a click if you mousedown and then 1 million years later mouse up. I realize you can do:
$myElm.on("mousedown.tmp", function () {
$myElm.off("mouTsedown.tmp");
$myElm.on("mouseup", function () {
$myElm.off("mouseup.tmp")
}
}); //
correct for spelling and factor in other event handlers. i mean roughly speaking.
I don't want to use a plugin.
return false;?