-
Notifications
You must be signed in to change notification settings - Fork 25
/
readme
28 lines (21 loc) · 974 Bytes
/
readme
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
see sample.htm
uses touch support for ipad - (tested on ipad only at this point - *should* work on android)
supports mouse as well
options:
see jquery.swipe.js options
minSwipeLength: 65, // the shortest distance the user may swipe - the lower the number the more sensitive
minMouseSwipeLength: 20,
preventDefault :false //used on TouchStart - setting this to true would negate things like button press from working, etc...
ui.swipeDirection returns the swipe direction 'up', 'down', 'left', 'right'
$("#test").swipe({
swiped: function (e, ui) {
$("#textDirection").html(ui.swipeDirection);
}
}
Version 1.0.2
2/16/2012 Added Windows 8 tablet touch support
In order to work with Windows 8 touch, add the following to the html, body CSS:
overflow: hidden;
-ms-content-zooming: none;/* Disable pan/zoom */
Created AMD version using volo - to amdify - use node ie. node volo amdify depends=jquery jquery.swipe.amd.js
(see: http://github.com/volojs/volo for details)