DataZombies / jQTouch

jQT extensions jqt.activityIndicator, jqt.bars (with numeric badges), jqt.checkGroup & jqt.segmentedControl.Get updates via Twitter http://twitter.com/HeadDZombie. If you find this fork useful please make a donation via PayPal (http://tinyurl.com/2fpmx27). See below for demo links.
MIT License
159 stars 34 forks source link

".toggle on-off button" conflicts with iScroll #48

Closed kimdwkimdw closed 13 years ago

kimdwkimdw commented 13 years ago

form element of "checkbox with .toggle" conflicts with iScroll.

I resolved with below code.

Is there any other possible solution?

P.S it was only shown in iOS.



//in .js
var changed=false;
$("#check").live("touchend",function(){ changed=false; });
$("#check").live("touchmove",function()
{
    if (!changed)
        $('#check')[0].checked = !$('#check')[0].checked;
    changed = true;  
    return false;
});
$("#check").live("touchstart",function(){ return false; });
DataZombies commented 13 years ago

This has been fixed in iscroll-min.js and iscroll-lite-min.js.