Skip to content

Commit 665b99b

Browse files
author
Matt Bryson
committedApr 1, 2013
added the double tap and long tap events, updated docs@
1 parent 9ce5e0b commit 665b99b

14 files changed

+20
-20
lines changed
 

‎docs/files.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ <h1 class="classTitle">File Index</h1>
8787
</div>
8888
<footer class="footer">
8989

90-
<p>Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blankt">JsDoc Toolkit</a> 2.4.0 on Tue Mar 26 2013 00:50:04 GMT-0000 (GMT)</p>
90+
<p>Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blankt">JsDoc Toolkit</a> 2.4.0 on Mon Apr 01 2013 18:48:20 GMT+0100 (BST)</p>
9191
</footer>
9292
<script type="text/javascript">
9393
<!--

‎docs/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ <h1 class="classTitle">Class Index</h1>
379379
</div>
380380
<footer class="footer">
381381

382-
<p>Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blankt">JsDoc Toolkit</a> 2.4.0 on Tue Mar 26 2013 00:50:04 GMT-0000 (GMT)</p>
382+
<p>Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blankt">JsDoc Toolkit</a> 2.4.0 on Mon Apr 01 2013 18:48:20 GMT+0100 (BST)</p>
383383
</footer>
384384
</div>
385385
</body>

‎docs/symbols/$.fn.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ <h3>Constructor</h3>
165165
<!-- ============================== footer ================================= -->
166166
<footer class="footer">
167167

168-
<p>Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blankt">JsDoc Toolkit</a> 2.4.0 on Tue Mar 26 2013 00:50:03 GMT-0000 (GMT)</p>
168+
<p>Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blankt">JsDoc Toolkit</a> 2.4.0 on Mon Apr 01 2013 18:48:19 GMT+0100 (BST)</p>
169169
</footer>
170170
</div></body>
171171
</html>

‎docs/symbols/$.fn.swipe.defaults.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ <h4>Instance Properties<span class="jsdoc-inherits-caption pull-right">Defined B
411411
<div class="jsdoc-member-definition">
412412
<b><a id="longTapThreshold" href="../symbols/%24.fn.swipe.defaults.html#longTapThreshold">longTapThreshold</a></b>
413413
: int
414-
<span class="jsdoc-member-default">(default = 1000)</span>
414+
<span class="jsdoc-member-default">(default = 500)</span>
415415

416416

417417

@@ -876,7 +876,7 @@ <h4>Instance Properties<span class="jsdoc-inherits-caption pull-right">Defined B
876876
<!-- ============================== footer ================================= -->
877877
<footer class="footer">
878878

879-
<p>Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blankt">JsDoc Toolkit</a> 2.4.0 on Tue Mar 26 2013 00:50:03 GMT-0000 (GMT)</p>
879+
<p>Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blankt">JsDoc Toolkit</a> 2.4.0 on Mon Apr 01 2013 18:48:19 GMT+0100 (BST)</p>
880880
</footer>
881881
</div></body>
882882
</html>

‎docs/symbols/$.fn.swipe.directions.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ <h4>Instance Properties<span class="jsdoc-inherits-caption pull-right">Defined B
340340
<!-- ============================== footer ================================= -->
341341
<footer class="footer">
342342

343-
<p>Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blankt">JsDoc Toolkit</a> 2.4.0 on Tue Mar 26 2013 00:50:03 GMT-0000 (GMT)</p>
343+
<p>Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blankt">JsDoc Toolkit</a> 2.4.0 on Mon Apr 01 2013 18:48:19 GMT+0100 (BST)</p>
344344
</footer>
345345
</div></body>
346346
</html>

‎docs/symbols/$.fn.swipe.fingers.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ <h4>Instance Properties<span class="jsdoc-inherits-caption pull-right">Defined B
285285
<!-- ============================== footer ================================= -->
286286
<footer class="footer">
287287

288-
<p>Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blankt">JsDoc Toolkit</a> 2.4.0 on Tue Mar 26 2013 00:50:04 GMT-0000 (GMT)</p>
288+
<p>Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blankt">JsDoc Toolkit</a> 2.4.0 on Mon Apr 01 2013 18:48:19 GMT+0100 (BST)</p>
289289
</footer>
290290
</div></body>
291291
</html>

‎docs/symbols/$.fn.swipe.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1315,7 +1315,7 @@ <h3>Events<span class="jsdoc-inherits-caption pull-right">Defined By</span></h3>
13151315
<!-- ============================== footer ================================= -->
13161316
<footer class="footer">
13171317

1318-
<p>Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blankt">JsDoc Toolkit</a> 2.4.0 on Tue Mar 26 2013 00:50:03 GMT-0000 (GMT)</p>
1318+
<p>Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blankt">JsDoc Toolkit</a> 2.4.0 on Mon Apr 01 2013 18:48:19 GMT+0100 (BST)</p>
13191319
</footer>
13201320
</div></body>
13211321
</html>

‎docs/symbols/$.fn.swipe.pageScroll.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ <h4>Instance Properties<span class="jsdoc-inherits-caption pull-right">Defined B
284284
<!-- ============================== footer ================================= -->
285285
<footer class="footer">
286286

287-
<p>Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blankt">JsDoc Toolkit</a> 2.4.0 on Tue Mar 26 2013 00:50:04 GMT-0000 (GMT)</p>
287+
<p>Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blankt">JsDoc Toolkit</a> 2.4.0 on Mon Apr 01 2013 18:48:19 GMT+0100 (BST)</p>
288288
</footer>
289289
</div></body>
290290
</html>

‎docs/symbols/$.fn.swipe.phases.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ <h4>Instance Properties<span class="jsdoc-inherits-caption pull-right">Defined B
284284
<!-- ============================== footer ================================= -->
285285
<footer class="footer">
286286

287-
<p>Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blankt">JsDoc Toolkit</a> 2.4.0 on Tue Mar 26 2013 00:50:04 GMT-0000 (GMT)</p>
287+
<p>Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blankt">JsDoc Toolkit</a> 2.4.0 on Mon Apr 01 2013 18:48:19 GMT+0100 (BST)</p>
288288
</footer>
289289
</div></body>
290290
</html>

‎docs/symbols/$.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ <h3>Constructor</h3>
165165
<!-- ============================== footer ================================= -->
166166
<footer class="footer">
167167

168-
<p>Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blankt">JsDoc Toolkit</a> 2.4.0 on Tue Mar 26 2013 00:50:03 GMT-0000 (GMT)</p>
168+
<p>Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blankt">JsDoc Toolkit</a> 2.4.0 on Mon Apr 01 2013 18:48:19 GMT+0100 (BST)</p>
169169
</footer>
170170
</div></body>
171171
</html>

‎docs/symbols/_global_.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ <h1 class="classTitle">
130130
<!-- ============================== footer ================================= -->
131131
<footer class="footer">
132132

133-
<p>Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blankt">JsDoc Toolkit</a> 2.4.0 on Tue Mar 26 2013 00:50:04 GMT-0000 (GMT)</p>
133+
<p>Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blankt">JsDoc Toolkit</a> 2.4.0 on Mon Apr 01 2013 18:48:20 GMT+0100 (BST)</p>
134134
</footer>
135135
</div></body>
136136
</html>

‎docs/symbols/src/jquery.touchSwipe.js.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@
218218
* @property {int} [pinchThreshold=20] The number of pixels that the user must pinch their finger by before it is considered a pinch.
219219
* @property {int} [maxTimeThreshold=null] Time, in milliseconds, between touchStart and touchEnd must NOT exceed in order to be considered a swipe.
220220
* @property {int} [fingerReleaseThreshold=250] Time in milliseconds between releasing multiple fingers. If 2 fingers are down, and are released one after the other, if they are within this threshold, it counts as a simultaneous release.
221-
* @property {int} [longTapThreshold=1000] Time in milliseconds between tap and release for a long tap
221+
* @property {int} [longTapThreshold=500] Time in milliseconds between tap and release for a long tap
222222
* @property {int} [doubleTapThreshold=200] Time in milliseconds between 2 taps to count as a doubletap
223223
* @property {function} [swipe=null] A handler to catch all swipes. See {@link $.fn.swipe#event:swipe}
224224
* @property {function} [swipeLeft=null] A handler that is triggered for "left" swipes. See {@link $.fn.swipe#event:swipeLeft}
@@ -250,7 +250,7 @@
250250
pinchThreshold:20,
251251
maxTimeThreshold: null,
252252
fingerReleaseThreshold:250,
253-
longTapThreshold:1000,
253+
longTapThreshold:500,
254254
doubleTapThreshold:200,
255255
swipe: null,
256256
swipeLeft: null,
@@ -1449,7 +1449,7 @@
14491449
*/
14501450
function validateLongTap() {
14511451
//slight threshold on moving finger
1452-
return ((duration &gt; options.longTapThreshold) &amp;&amp; (distance &lt; DOUBLE_TAP_THRESHOLD));
1452+
return ((duration &gt; options.longTapThreshold) &amp;&amp; (distance &lt; DOUBLE_TAP_THRESHOLD));
14531453
}
14541454

14551455
/**
@@ -2021,7 +2021,7 @@
20212021
<!-- ============================== footer ================================= -->
20222022
<footer class="footer">
20232023

2024-
<p>Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blankt">JsDoc Toolkit</a> 2.4.0 on Tue Mar 26 2013 00:50:04 GMT-0000 (GMT)</p>
2024+
<p>Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blankt">JsDoc Toolkit</a> 2.4.0 on Mon Apr 01 2013 18:48:20 GMT+0100 (BST)</p>
20252025
</footer>
20262026
</div>
20272027
<script type="text/javascript">

‎jquery.touchSwipe.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147
* @property {int} [pinchThreshold=20] The number of pixels that the user must pinch their finger by before it is considered a pinch.
148148
* @property {int} [maxTimeThreshold=null] Time, in milliseconds, between touchStart and touchEnd must NOT exceed in order to be considered a swipe.
149149
* @property {int} [fingerReleaseThreshold=250] Time in milliseconds between releasing multiple fingers. If 2 fingers are down, and are released one after the other, if they are within this threshold, it counts as a simultaneous release.
150-
* @property {int} [longTapThreshold=1000] Time in milliseconds between tap and release for a long tap
150+
* @property {int} [longTapThreshold=500] Time in milliseconds between tap and release for a long tap
151151
* @property {int} [doubleTapThreshold=200] Time in milliseconds between 2 taps to count as a doubletap
152152
* @property {function} [swipe=null] A handler to catch all swipes. See {@link $.fn.swipe#event:swipe}
153153
* @property {function} [swipeLeft=null] A handler that is triggered for "left" swipes. See {@link $.fn.swipe#event:swipeLeft}
@@ -179,7 +179,7 @@
179179
pinchThreshold:20,
180180
maxTimeThreshold: null,
181181
fingerReleaseThreshold:250,
182-
longTapThreshold:1000,
182+
longTapThreshold:500,
183183
doubleTapThreshold:200,
184184
swipe: null,
185185
swipeLeft: null,
@@ -1378,7 +1378,7 @@
13781378
*/
13791379
function validateLongTap() {
13801380
//slight threshold on moving finger
1381-
return ((duration > options.longTapThreshold) && (distance < DOUBLE_TAP_THRESHOLD));
1381+
return ((duration > options.longTapThreshold) && (distance < DOUBLE_TAP_THRESHOLD));
13821382
}
13831383

13841384
/**

‎jquery.touchSwipe.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.