Github
This repository
This repository
All repositories
Back to issue list Issue #1869
Closed

0 comments


Labels
sustainablepace opened this issue

Overwriting $.mobile.useFastClick is not possible

No milestone
No one is assigned

I'm having a problem in b1 with useFastClick. I need to deactivate it, and I registered with mobileinit, like this

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

However, the mobileinit event is triggered AFTER the setting has been read here

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

Is there a way to set useFastClick properly? If not, I motion to postpone the click routing until after the mobileinit callbacks have fired.

scottjehl moved page load event bindings to a post-mobileinit callback so that …
…the useFastClick option can be set before it is used. Unit test included. Fixes #1869
ffdfa4e
Closed

scottjehl closed the issue in ffdfa4e

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