From 89917f0aa2d3be94a1c561a75b6b412694ade354 Mon Sep 17 00:00:00 2001 From: Ben Major Date: Wed, 1 Feb 2017 01:05:56 +0000 Subject: [PATCH] Added threshold info for doubletap --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 086e2bf..1f3db37 100644 --- a/README.md +++ b/README.md @@ -246,6 +246,11 @@ The value you define is the difference in pixels that the user must move before ``data-ythreshold`` defines the vertical threshold. +**Update as of 1.0.7:** +Following requests from users and contributors, as of 1.0.7 it is now possible to also define the `doubletap` threshold via jQuery's `data-` attributes as follows: + +``data-threshold`` defines the amount of time (in milliseconds) after which the `doubletap` event is fired on the target element. + ## 7. Utility Functions: In addition to the numerous additional events that are provided, the library also includes a number of utility functions that can be used to further leverage the power of native events within your website or application. These utility functions can be used for unifying basic events, such as `tapstart` or `mousedown`.