Skip to content
This repository
Browse code

Increased the scrollSupressionThreshold from 10 to 30 pixels

This makes the swipe tolerances more forgiving so it doesn't interfere
with scrolling. Fixes #2107
  • Loading branch information...
commit 94d773e1b5f91d72210d182284e1de668978737a 1 parent 7f38595
Todd Parker authored July 19, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  js/events/touch.js
2  js/events/touch.js
@@ -122,7 +122,7 @@ define( [ "jquery", "../jquery.mobile.vmouse" ], function( $ ) {
122 122
 
123 123
 	// also handles swipeleft, swiperight
124 124
 	$.event.special.swipe = {
125  
-		scrollSupressionThreshold: 10, // More than this horizontal displacement, and we will suppress scrolling.
  125
+		scrollSupressionThreshold: 30, // More than this horizontal displacement, and we will suppress scrolling.
126 126
 
127 127
 		durationThreshold: 1000, // More time than this, and it isn't a swipe.
128 128
 

0 notes on commit 94d773e

Please sign in to comment.
Something went wrong with that request. Please try again.