Bug Tracker

Opened 11 years ago

Closed 11 years ago

#10946 closed feature (plugin)

unified event binder for click and dblclick

Reported by: [email protected] Owned by:
Priority: low Milestone: None
Component: event Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:


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 (2)

comment:1 Changed 11 years ago by sindresorhus

Component: unfiledevent
Priority: undecidedlow
Status: newopen

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.

comment:3 Changed 11 years ago by dmethvin

Resolution: plugin
Status: openclosed

Better as a plugin.

Note: See TracTickets for help on using tickets.