I want users to be able to click on an element, as well as select the same element. If they click, then they should behave like a click, but if they go out to mousedown and select the text, it should not behave like a click (since this is not a click). jQuery launches the click if you are mousedown, and then after 1 million years, pull the mouse. I understand what 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.
I do not want to use the plugin.
user2102611
source
share