Ticket #10946 (closed feature: plugin)
unified event binder for click and dblclick
| Reported by: | khan_msu@… | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | None |
| Component: | event | Version: | 1.7.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
In local system much of the actions could be fired with double clicking. So sometimes while browsing internet people double click links or buttons automatically and it could have some undesirable consequences for web developers. That is why it is reasonable for vast majority of situations to handle single clicks and double clicks in a unified way. So why not to have a unified event for them, for instance 'uniclick' or something like this. As far as I see, now there is one to one correspondance between DOM events and jQuery event binder functions. So proposed 'uniclick' seems to be a bit of outsider. Nevertheless, the need for unified handling of click and dblclick seems to be rather a fundamental feature for UX, so it will be good to have it in jQ Core I suppose.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Single click is how we navigate on the Internet. Some user might not understand that at first. But still, if we encourage the wrong behavior, we're not doing the users any favor, since they'll never learn the correct behavior.
In my opinion this does not belong in core.
This can also easily be done as a special event. I've gone ahead and created a special event called lastclick that fires on the last click based on a threshold.