Bug Tracker

Modify

Ticket #10946 (closed feature: plugin)

Opened 18 months ago

Last modified 15 months ago

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

comment:1 Changed 18 months ago by sindresorhus

  • Priority changed from undecided to low
  • Status changed from new to open
  • Component changed from unfiled to event

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 15 months ago by dmethvin

  • Status changed from open to closed
  • Resolution set to plugin

Better as a plugin.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.