File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -8,14 +8,14 @@ Based on Andreas Waltl's [jQuery TouchWipe](http://www.netcu.de/jquery-touchwipe
88How 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
1919This 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
You can’t perform that action at this time.
0 commit comments