Skip to content

Commit c5e0df4

Browse files
committed
Tweak readme
1 parent 6224bb1 commit c5e0df4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ Based on Andreas Waltl's [jQuery TouchWipe](http://www.netcu.de/jquery-touchwipe
88
How to use
99
----------
1010

11-
$(".selector").detectSwipe({
12-
threshold: 20, // The number of pixels your finger must move to trigger a swipe event. Defaults is 20.
13-
})
14-
.on('swipeleft', function(){ /*...*/ })
15-
.on('swiperight', function(){ /*...*/ })
16-
.on('swipeup', function(){ /*...*/ })
17-
.on('swipedown', function(){ /*...*/ });
11+
$(".selector").detectSwipe({
12+
threshold: 20, // The number of pixels your finger must move to trigger a swipe event. Defaults is 20.
13+
})
14+
.on('swipeleft', function(){ /*...*/ })
15+
.on('swiperight', function(){ /*...*/ })
16+
.on('swipeup', function(){ /*...*/ })
17+
.on('swipedown', function(){ /*...*/ });
1818

1919
This won't have any effect on non-touch devices. You can rely on:
2020

21-
$.fn.detectSwipe.enabled // true on touch devices, false otherwise
21+
$.fn.detectSwipe.enabled // true on touch devices, false otherwise

0 commit comments

Comments
 (0)