Skip to content

Deliaz/jquery-trplclick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TrplClick — real 'triple click' event plugin for jQuery

Triple click event will be triggered only when all three clicks are fired with equal interval.

Install

Clone this repo or:

bower install jquery-trplclick

Usage:

$('.myBtn').on('trplclick', function () {
  // Your awesome code here
});

That's it! Now you have true 'triple click' event handler.

Options

Default settings are suitable for almost ane cases, but you can customize it anyway

  • minClickInterval — minimum allowable interval between the first and the second click.
    Default: 100 (ms)
  • maxClickInterval — maximum allowable interval between the first and the second click.
    Default: 500 (ms)
  • minPercentThird — minimum deviation for the third click (in percentages) between the intervals of the first and the second click.
    Default: 85.0 (%)
  • maxPercentThird — maximum deviation for third click (in percentages) between intervals of the first and the second click.
    Default: 130.0 (%)

About

Real 'triple click' event plugin for jQuery

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published