Triple click event will be triggered only when all three clicks are fired with equal interval.
Clone this repo or:
bower install jquery-trplclick
$('.myBtn').on('trplclick', function () {
// Your awesome code here
});
That's it! Now you have true 'triple click' event handler.
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
(%)