SkillAgentSearch skills...

JqSwipe

Minimal swipe special event for touch-enabled devices

Install / Use

/learn @yairEO/JqSwipe
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

jqSwipe

Deprecated - please use: https://github.com/yairEO/touchy

Adds minimal swipe special event for touch-enabled devices. by minimal, I mean it just knows which direction the finger went across the screen, without caring about the velocity, acceleration or basicly anything else than the direction.

Weight: ~1.6kb (with comments, uncompressed)

Test page (QR URL):

QR URL

How to use:

<script>
   $('div').on('swipe', function(e, Dx, Dy){
       // Dx == 1 means right
       // Dx == -1 means left
       // Dy == 1 means top
       // Dy == -1 means bottom
   });
</script>
View on GitHub
GitHub Stars11
CategoryProduct
Updated5y ago
Forks3

Languages

JavaScript

Security Score

60/100

Audited on Jun 7, 2020

No findings