https://github.com/br0ken-/twofingersswipe
Horizontal swipe event
https://github.com/br0ken-/twofingersswipe
event javascript jquery jquery-plugin macos swipe
Last synced: 3 months ago
JSON representation
Horizontal swipe event
- Host: GitHub
- URL: https://github.com/br0ken-/twofingersswipe
- Owner: BR0kEN-
- License: mit
- Created: 2017-05-09T06:27:52.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-09T06:44:46.000Z (about 9 years ago)
- Last Synced: 2025-07-02T23:36:04.232Z (about 1 year ago)
- Topics: event, javascript, jquery, jquery-plugin, macos, swipe
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# twoFingersSwipe
Catch horizontal scrolling and fire custom event - `twoFingersSwipe`. Check out the [demonstration](http://BR0kEN-.github.io/twoFingersSwipe).
## Usage
```javascript
jQuery('.selector').bind('twoFingersSwipe', function (event, direction) {
switch (direction) {
case 'left':
// Do something.
break;
case 'right':
// Do something.
break;
}
})
```