Skip to content

jQuery deactivates site in iOS6 #30

Closed
mmcverry opened this Issue Sep 24, 2012 · 8 comments

5 participants

@mmcverry

Hi there,

I'm using TouchSwipe on this development site- click here to see which was working great under iOS 5 and mobile safari.

use iOS 6 safari and chrome to view issue

After my weekend update to iOS 6, it seems jQuery deactivates the site after vertical scrolling a bit (normal browser scrolling, not jQuery). After browser scrolling Touch swipe no longer functions properly nor do page anchors (main menu) at the top.

I'm using version 1.2.5 - This is confirmed to work on iOS 5 devices, however iOS (iPhone & iPads) seem to deactivate the site after some vertical scrolling.

@mattbryson
Owner

Ill have a look when im back in the office, did you have any idea where the issues might be?

@mmcverry
@wgausmann

It turns out this problem is caused by a bug in iOS6 involving touch events triggering both a setTimeout and scrolling. You can fix the problem by adding this script along with the touchSwipe script: https://gist.github.com/3798925 when you call your javascript.

@salunet
salunet commented Oct 4, 2012

Thanks for the fix!

@mmcverry
@salunet
salunet commented Oct 4, 2012

Just under your jquery. So if your jquery is in the head then place it there. But it is better to place all your scripts before the closing body tag

@mmcverry
@mmcverry mmcverry closed this Oct 4, 2012
@nicoknaepen

Thanks for this solution. This problem was giving me a headache for almost 2 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.