Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
@jblas jblas authored
View
3  docs/api/globalconfig.html
@@ -98,9 +98,6 @@
<dt>ajaxEnabled (<em>boolean</em>, default: true):</dt>
<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>
-
- <dt>useFastClick (<em>boolean</em>, default: true):</dt>
- <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>
<dt>hashListeningEnabled (<em>boolean</em>, default: true):</dt>
View
5 js/jquery.mobile.core.js
@@ -33,11 +33,6 @@
// Automatically handle clicks and form submissions through Ajax, when same-domain
ajaxEnabled: true,
- // When enabled, clicks and taps that result in Ajax page changes will happen slightly sooner on touch devices.
- // Also, it will prevent the address bar from appearing on platforms like iOS during page transitions.
- // This option has no effect on non-touch devices, but enabling it may interfere with jQuery plugins that bind to click events
- useFastClick: true,
-
// Automatically load and show pages based on location.hash
hashListeningEnabled: true,
View
2  js/jquery.mobile.navigation.js
@@ -1019,7 +1019,7 @@
});
// click routing - direct to HTTP or Ajax, accordingly
- $( document ).bind( $.mobile.useFastClick ? "vclick" : "click", function( event ) {
+ $( document ).bind( "click", function( event ) {
var link = findClosestLink( event.target );
if ( !link ) {
return;
Please sign in to comment.
Something went wrong with that request. Please try again.