From 9fffcb6eca7854a12c191fbe13d733beae0bc780 Mon Sep 17 00:00:00 2001 From: scottjehl Date: Mon, 20 Jun 2011 13:44:33 -0400 Subject: [PATCH] bind to click as well, for an edge case in android 2.1 --- js/jquery.mobile.navigation.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/js/jquery.mobile.navigation.js b/js/jquery.mobile.navigation.js index 5cbb0731..c7a65c95 100644 --- a/js/jquery.mobile.navigation.js +++ b/js/jquery.mobile.navigation.js @@ -993,8 +993,13 @@ } }); - //click routing - direct to HTTP or Ajax, accordingly - $( document ).bind( $.mobile.useFastClick ? "vclick" : "click", function( event ) { + // click routing - direct to HTTP or Ajax, accordingly + // TODO: most of the time, vclick will be all we need for fastClick bulletproofing. + // However, it seems that in Android 2.1, a click event + // will occasionally arrive independently of the bound vclick + // binding to click as well seems to help in this edge case + // we'll dig into this further in the next release cycle + $( document ).bind( $.mobile.useFastClick ? "vclick click" : "click", function( event ) { var link = findClosestLink( event.target ); if ( !link ) { return;