An open API service indexing awesome lists of open source software.

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

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;
}
})
```