This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var win = Ti.UI.createWindow({ backgroundColor: '#fff' }); | |
| /** | |
| * Adds "swipe" event support to Android, and adds swipe up and down to iOS. | |
| * @param view The view that should be made swipeable. | |
| * @param allowVertical Whether or not vertical swipes (up and down) are allowed; default is false. | |
| * @param tolerance How much further you need to go in a particular direction before swipe is fired; default is 2. | |
| */ | |
| function makeSwipeable(view, allowVertical, tolerance) { | |
| tolerance = tolerance || 2; |
NewerOlder