Skip to content
This repository
Browse code

Switch back to processing link clicks on the "click" event. It really…

… is the only reliable way across all the devices we support.

Also, remove all references to useFastClick.
  • Loading branch information...
commit 2b513556560bb9ae52ad4da015c0d36038ded3ff 1 parent 2fda8f7
Kin Blas authored
3  docs/api/globalconfig.html
@@ -98,9 +98,6 @@
98 98
 	
99 99
 	<dt>ajaxEnabled (<em>boolean</em>, default: true):</dt> 
100 100
 	<dd>jQuery Mobile will automatically handle link clicks and form submissions through Ajax, when possible. If false, url hash listening will be disabled as well, and urls will load as regular http requests.</dd>
101  
-	
102  
-	<dt>useFastClick (<em>boolean</em>, default: true):</dt> 
103  
-	<dd>When handling clicks and taps automatically with Ajax, this option will use jQuery Mobile's <code>vclick</code> event, enabling page changes to happen slightly sooner on devices that support touch events, and keeping the address bar hidden during page transtions. When disabled, the automatied Ajax handling will use an ordinary <code>click</code> event instead. This option has no effect on non-touch devices, but when enabled, it may interfere with jQuery plugins that bind to click events rather than vclick events.</dd>
104 101
 
105 102
 
106 103
 	<dt>hashListeningEnabled (<em>boolean</em>, default: true):</dt> 
5  js/jquery.mobile.core.js
@@ -33,11 +33,6 @@
33 33
 		// Automatically handle clicks and form submissions through Ajax, when same-domain
34 34
 		ajaxEnabled: true,
35 35
 
36  
-		// When enabled, clicks and taps that result in Ajax page changes will happen slightly sooner on touch devices.
37  
-		// Also, it will prevent the address bar from appearing on platforms like iOS during page transitions.
38  
-		// This option has no effect on non-touch devices, but enabling it may interfere with jQuery plugins that bind to click events
39  
-		useFastClick: true,
40  
-
41 36
 		// Automatically load and show pages based on location.hash
42 37
 		hashListeningEnabled: true,
43 38
 
2  js/jquery.mobile.navigation.js
@@ -1019,7 +1019,7 @@
1019 1019
 		});
1020 1020
 
1021 1021
 		// click routing - direct to HTTP or Ajax, accordingly
1022  
-		$( document ).bind( $.mobile.useFastClick ? "vclick" : "click", function( event ) {
  1022
+		$( document ).bind( "click", function( event ) {
1023 1023
 			var link = findClosestLink( event.target );
1024 1024
 			if ( !link ) {
1025 1025
 				return;

0 notes on commit 2b51355

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