From 1b72203096953769d6d47451f04b943bf2c446b0 Mon Sep 17 00:00:00 2001 From: scottjehl Date: Fri, 28 Jan 2011 14:39:58 -0800 Subject: [PATCH] checks and radios no longer check when a scroll starts on top of them. Fixes #893 --- js/jquery.mobile.forms.checkboxradio.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/js/jquery.mobile.forms.checkboxradio.js b/js/jquery.mobile.forms.checkboxradio.js index 58dfa43f..b7690974 100644 --- a/js/jquery.mobile.forms.checkboxradio.js +++ b/js/jquery.mobile.forms.checkboxradio.js @@ -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();