Skip to content

Commit 2b51355

Browse files
committed
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.
1 parent 2fda8f7 commit 2b51355

File tree

3 files changed

+1
-9
lines changed

3 files changed

+1
-9
lines changed

docs/api/globalconfig.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,6 @@ <h2>Configurable options</h2>
9898

9999
<dt>ajaxEnabled (<em>boolean</em>, default: true):</dt>
100100
<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>
104101

105102

106103
<dt>hashListeningEnabled (<em>boolean</em>, default: true):</dt>

js/jquery.mobile.core.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@
3333
// Automatically handle clicks and form submissions through Ajax, when same-domain
3434
ajaxEnabled: true,
3535

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-
4136
// Automatically load and show pages based on location.hash
4237
hashListeningEnabled: true,
4338

js/jquery.mobile.navigation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@
10191019
});
10201020

10211021
// click routing - direct to HTTP or Ajax, accordingly
1022-
$( document ).bind( $.mobile.useFastClick ? "vclick" : "click", function( event ) {
1022+
$( document ).bind( "click", function( event ) {
10231023
var link = findClosestLink( event.target );
10241024
if ( !link ) {
10251025
return;

0 commit comments

Comments
 (0)