detect_swipe
Advanced tools
Comparing version 2.1.3 to 2.1.4
{ | ||
"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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5640
101