Skip to content

The cleanest and the most accurate swiping with JavaScript

License

Notifications You must be signed in to change notification settings

igorpavlov-zz/swi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install

npm install swi --save

Include

<script src='node_modules/swi/build/swi.js' type='text/javascript'></script>

...or use ES6 import

Use

swi({
  // element to attach swipe to, document by default
  element: document.getElementById('my-container'),
  left:  function () { console.log('Left swipe!');  }, // optional
  right: function () { console.log('Right swipe!'); }, // optional
  up:    function () { console.log('Up swipe!');    }, // optional
  down:  function () { console.log('Down swipe!');  }  // optional
});

Try it out

See the Swi implementation at Fustr.com

About

The cleanest and the most accurate swiping with JavaScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published