Permalink
Browse files

Swipe: Fix pixel density on android swipe event

Fixes swipe events for all pixel densities.
This is a partial fix for some swipe related issues.

Ref gh-5534
closes gh-7431
  • Loading branch information...
TNT-RoX authored and arschmitz committed May 27, 2014
1 parent 8cdc1b0 commit c299573c23dc7d8cf8a7d548eadccf2d23bfb838
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/events/touch.js
View
@@ -109,10 +109,10 @@ define( [ "jquery", "../vmouse", "../support/touch" ], function( jQuery ) {
durationThreshold: 1000,
// Swipe horizontal displacement must be more than this.
horizontalDistanceThreshold: 30,
horizontalDistanceThreshold: window.devicePixelRatio >= 2 ? 15 : 30,
// Swipe vertical displacement must be less than this.
verticalDistanceThreshold: 30,
verticalDistanceThreshold: window.devicePixelRatio >= 2 ? 15 : 30,
getLocation: function ( event ) {
var winPageX = window.pageXOffset,

0 comments on commit c299573

Please sign in to comment.