Deliaz / jquery-trplclick

Real 'triple click' event plugin for jQuery

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:JavaScript 100.0%