Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/lsongdev/finger.js

:point_right: super tiny touch helper :point_left:
https://github.com/lsongdev/finger.js

gesture-recognition mobile touch-events touchscreen

Last synced: 3 days ago
JSON representation

:point_right: super tiny touch helper :point_left:

Awesome Lists containing this project

README

        

## Finger.js

```js
var finger = new Finger('#view');

finger.on('tap', function(e){
console.log('tap', e);
});

finger.on('tap2', function(e){
console.log('double tap', e);
});

finger.on('move', function(e){
console.log('move', e);
});

finger.on('swipe', function(e){
console.log('swipe', e);
});

finger.on('pinch', function(e){
console.log('scale', e);
});

finger.on('rotate', function(){
console.log('rotate', e);
});
```