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

new iscroll 4.2.2 not working #97

Open fidoboy opened 11 years ago

fidoboy commented 11 years ago

Hello, i've updated my app with current version of iscroll 4.2.2 https://github.com/DataZombies/iscroll previous version works ok with my app, but when i just replace the file with the new one, it doesn't work.

I've noticed that the script is being loaded and there is no errors on the console, the s-scrollwrapper div is being populated with the iscroll elements and css properties, and also it works on my Safari browser but when testing it on the iPhone simulator or in a real iPhone it doesn't respond to the touch events, i tap and drag on the screen but it does nothing and no errors, so i'm not sure about where to start to debug the problem.

fidoboy commented 11 years ago

Ok, i've found the problem. It was on jet.bars.js script, you must change the code:

// Prevent navbar pull-down $('#' + pageID + ' .toolbar ~ div').andSelf().not('.' + jQT.barsSettings.wrapperClass + ', .listIndex').bind('touchmove', function (e) { e.preventDefault(); });

into this one:

// Prevent navbar pull-down $('#' + pageID + ' .toolbar ~ div').andSelf().not('.' + jQT.barsSettings.wrapperClass + ', .listIndex').bind('touchmove', function (e) { e.preventDefault(); //e.stopPropagation(); });

that is, remove the stopPropagation function. Commenting this line, scroll works fine!! :+1: