
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
jquery-touchswipe
Advanced tools
A jquery plugin to be used on touch devices such as iPad, iPhone, Android etc, to react to swipe gestures.
A jQuery plugin to be used on touch devices such as iPad, iPhone, Android etc.
Detects single and multiple finger swipes, pinches and falls back to mouse 'drags' on the desktop.
Time and distance thresholds can be set to distinguish between swipe gesture and slow drag.
Allows exclusion of child elements (interactive elements) as well allowing page scrolling or page zooming depending on configuration.
http://labs.rampinteractive.co.uk/touchSwipe
http://labs.rampinteractive.co.uk/touchSwipe/docs
npm install jquery-touchswipe --save
bower install jquery-touchswipe --save
Include the minified file in your project.
<script type="text/javascript" src="js/jquery.touchSwipe.min.js"></script>
$(function() {
$("#test").swipe( {
//Generic swipe handler for all directions
swipe:function(event, direction, distance, duration, fingerCount, fingerData) {
$(this).text("You swiped " + direction );
}
});
//Set some options later
$("#test").swipe( {fingers:2} );
});
For full demos, code examples and documentation, see below.
Install dependencies
npm install
To minify
npm run minify
To build docs
npm run docs
To do both
npm run build
FAQs
A jquery plugin to be used on touch devices such as iPad, iPhone, Android etc, to react to swipe gestures.
The npm package jquery-touchswipe receives a total of 36,026 weekly downloads. As such, jquery-touchswipe popularity was classified as popular.
We found that jquery-touchswipe demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.