jquery - Button click not working properly in Android 4.4.3 -
i working on application using cordova 3.4.0, upgraded nexus 5 device os 4.4.3 , found issue button click in app not working(have click several times perform action) properly, searched around net , known issue, people using intel appframework ui, not using it, using jquery 1.8.2.
does have thought how prepare ?
onclick : function(ele, func, noprevent, selector, considerclickonlyifnotendofscroll, preventclicksconfirmfunc) { ele.on(sus.startevent, selector, function(e) { sus.touchedelement = this; if (e.originalevent.touches) sus.touches = e.originalevent.touches[0]; $(e.target).trigger("ctouch"); if (!noprevent) { homecoming false; } }); ele.on(sus.endevent, selector, function(e) { if (sus.touchedelement == this) { sus.touchedelement = null; e.target.touches = sus.touches; var dopreventclicks = false; if (isnative && (!preventclicksconfirmfunc || preventclicksconfirmfunc(e))) sus.preventclicks(); //to prevent double clicks when ui updated if (considerclickonlyifnotendofscroll) { window.settimeout(function() { if (!sus.scrolljustended) func(e); }, 1); } else{ var returnedbubbleval = func(e); //return false; // if(returnedbubbleval) // { // //sus.preventclicks(); // homecoming true; // } else { // homecoming false; // } } } if (!noprevent) { homecoming false; } }); }, android jquery cordova
No comments:
Post a Comment