jQTouch icon indicating copy to clipboard operation
jQTouch copied to clipboard

new iscroll 4.2.2 not working

Open fidoboy opened this issue 13 years ago • 1 comments

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 avatar Nov 26 '12 03:11 fidoboy

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:

fidoboy avatar Nov 26 '12 15:11 fidoboy