Skip to content

Javascript based library that allow use swipe-touch events on DOM

License

Notifications You must be signed in to change notification settings

kalkson/swipe-touch-events

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

swipe-touch-events

Javascript based library that allow use swipe-touch events on DOM

importing

import 'swipe-touch-events';

or import by hand

usage

document.addEventListener('swiperight', () => {
  console.log('swiped right');
});

If you want to use events on specific DOM element:

element.addEventListener('swipedown', () => {
  console.log('swiped down');
});

About

Javascript based library that allow use swipe-touch events on DOM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published