Skip to content

$.mobile.useFastClick cannot be set effectively in mobileinit event handler #1916

Closed
trainiac opened this Issue Jun 23, 2011 · 3 comments

2 participants

@trainiac

$( document ).bind( $.mobile.useFastClick ? "vclick click" : "click", function( event ) {

});

is called before

$( window.document ).trigger( "mobileinit" );

therefore $.mobile.useFastClick will always be whatever the default is (currently true) when binding the event. The user does not have a chance to do something like

$(document).bind('mobileinit',function(){
$.mobile.useFastClick = false;
});

@jblas
jblas commented Jun 23, 2011

I believe this is fixed already on the HEAD.

@metalculus84

I noticed you were having click problems in some github emails that flew by. To get you going just set the default value of $.mobile.useFastClick to false. That should restore the behavior in alpha 4.1.

@jblas
jblas commented Jun 23, 2011

Yup it was fixed:

#1869

@jblas jblas closed this Jun 23, 2011
@trainiac

Thanks @jblas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.