@apps.grandit/react-easy-swipedeprecated

React easy swipe - Easy handler for common touch operations

Usage no npm install needed!

<script type="module">
  import appsGranditReactEasySwipe from 'https://cdn.skypack.dev/@apps.grandit/react-easy-swipe';
</script>

README

Forked from https://www.npmjs.com/package/react-easy-swipe

For private purpose and with compare angle to prevent fire more than one direction event with swipe, based on atan2((start.y-end.y) / (start.x-end.x) * 180 / PI) formula. To enable this feature, set props useAngle=true.