Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

detect_swipe

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

detect_swipe - npm Package Compare versions

Comparing version 2.1.3 to 2.1.4

2

bower.json
{
"name": "jquery-detect-swipe",
"version": "2.1.3",
"version": "2.1.4",
"description": "Gives easy access to left/right/up/down swipe events for iOS and other touch devices.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/marcandre/detect_swipe",

@@ -46,6 +46,7 @@ /**

var dir;
if(Math.abs(dx) >= $.detectSwipe.threshold) {
var ratio = window.devicePixelRatio || 1;
if(Math.abs(dx) * ratio >= $.detectSwipe.threshold) {
dir = dx > 0 ? 'left' : 'right'
}
else if(Math.abs(dy) >= $.detectSwipe.threshold) {
else if(Math.abs(dy) * ratio >= $.detectSwipe.threshold) {
dir = dy > 0 ? 'up' : 'down'

@@ -52,0 +53,0 @@ }

{
"name": "detect_swipe",
"version": "2.1.3",
"version": "2.1.4",
"homepage": "http://github.com/marcandre/detect_swipe",
"license": "MIT",
"description": "Simple jQuery extension for swipe events on touch devices",
"main": "jquery/detect_swipe.js",
"main": "jquery.detect_swipe.js",
"repository": {

@@ -9,0 +9,0 @@ "type": "git",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc