mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-17 19:11:06 +00:00
checks and radios no longer check when a scroll starts on top of them. Fixes #893
This commit is contained in:
parent
b10c5c04c2
commit
1b72203096
1 changed files with 1 additions and 11 deletions
|
|
@ -41,18 +41,8 @@ $.widget( "mobile.checkboxradio", $.mobile.widget, {
|
|||
if( $(this).parent().is('.ui-disabled') ){ return false; }
|
||||
},
|
||||
|
||||
"touchend mouseup": function( event ){
|
||||
//prevent both events from firing, keep the first
|
||||
if( $(this).parent().is('.ui-disabled') || $(this).data("prevEvent") && $(this).data("prevEvent") !== event.type ){
|
||||
return false;
|
||||
}
|
||||
$(this).data("prevEvent", event.type);
|
||||
setTimeout(function(){
|
||||
label.removeData("prevEvent");
|
||||
}, 1000);
|
||||
|
||||
"tap": function( event ){
|
||||
self._cacheVals();
|
||||
|
||||
input.attr( "checked", inputtype === "radio" && true || !input.is( ":checked" ) );
|
||||
self._updateAll();
|
||||
event.preventDefault();
|
||||
|
|
|
|||
Loading…
Reference in a new issue