mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
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.
This commit is contained in:
parent
2fda8f7efc
commit
2b51355656
3 changed files with 1 additions and 9 deletions
|
|
@ -98,9 +98,6 @@ $(document).bind("mobileinit", function(){
|
|||
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue