Skip to content

Commit f833a9c

Browse files
anuragagarwal561994agcolom
authored andcommitted
Swipe: Fix error in API Documentation
Closes gh-366 Fixes gh-365
1 parent 3f29538 commit f833a9c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

entries/swipe.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?xml version="1.0"?>
22
<entry name="swipe" type="event" return="jQuery" example-selector="window">
33
<title>swipe</title>
4-
<desc>Triggered when a horizontal drag of 30px or more (and less than 75px vertically) occurs within 1 second duration.</desc>
4+
<desc>Triggered when a horizontal drag of 30px or more (and less than 30px vertically) occurs within 1 second duration.</desc>
55
<longdesc>
6-
<p>Triggered when a horizontal drag of 30px or more (and less than 75px vertically) occurs within 1 second duration but these can be configured:
6+
<p>Triggered when a horizontal drag of 30px or more (and less than 30px vertically) occurs within 1 second duration but these can be configured:
77
<ul>
88
<li><code>$.event.special.swipe.scrollSupressionThreshold</code> (default: 10px) – More than this horizontal displacement, and we will suppress scrolling.</li>
99
<li><code>$.event.special.swipe.durationThreshold</code> (default: 1000ms) – More time than this, and it isn't a swipe.</li>
1010
<li><code>$.event.special.swipe.horizontalDistanceThreshold</code> (default: 30px) – Swipe horizontal displacement must be more than this.</li>
11-
<li><code>$.event.special.swipe.verticalDistanceThreshold</code> (default: 75px) – Swipe vertical displacement must be less than this.</li>
11+
<li><code>$.event.special.swipe.verticalDistanceThreshold</code> (default: 30px) – Swipe vertical displacement must be less than this.</li>
1212
</ul>
1313
</p>
1414
<p>The swipe event can also be extend to add your own logic or functionality. The following methods can be extended:</p>

entries/swipeleft.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<title>swipeleft</title>
44
<desc>Triggered when a swipe event occurs moving in the left direction.</desc>
55
<longdesc>
6-
<p>Triggered when a horizontal drag of 30px or more (and less than 75px vertically) occurs within 1 second duration in the left direction. See <a href="../swipe/">the swipe event entry</a> for more detailed information on the swipe event.</p>
6+
<p>Triggered when a horizontal drag of 30px or more (and less than 30px vertically) occurs within 1 second duration in the left direction. See <a href="../swipe/">the swipe event entry</a> for more detailed information on the swipe event.</p>
77
</longdesc>
88
<added>1.0</added>
99
<signature>

entries/swiperight.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<title>swiperight</title>
44
<desc>Triggered when a swipe event occurs moving in the right direction.</desc>
55
<longdesc>
6-
<p>Triggered when a horizontal drag of 30px or more (and less than 75px vertically) occurs within 1 second duration in the right direction. See <a href="../swipe/">the swipe event entry</a> for more detailed information on the swipe event.</p>
6+
<p>Triggered when a horizontal drag of 30px or more (and less than 30px vertically) occurs within 1 second duration in the right direction. See <a href="../swipe/">the swipe event entry</a> for more detailed information on the swipe event.</p>
77
</longdesc>
88
<added>1.0</added>
99
<signature>

0 commit comments

Comments
 (0)