Skip to main content

Bug Tracker

Side navigation

#10946 closed feature (plugin)

Opened December 03, 2011 11:04AM UTC

Closed March 10, 2012 04:27AM UTC

unified event binder for click and dblclick

Reported by: 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.

Attachments (0)
Change History (2)

Changed December 05, 2011 10:03AM UTC by sindresorhus comment:1

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.

Changed March 10, 2012 04:27AM UTC by dmethvin comment:2

resolution: → plugin
status: openclosed

Better as a plugin.