0

well the code is a lot, but the issue can be summarized like this:

I got two files with html, one of them (main.html) has 2 swipers (indexSwiper, testimoniesSwiper) that works perfectly on mobile and desktop, afterwards I want to duplicate one of those swipers in a next file (events.html) I just bring the code to this file and change the content (just text inside the swiper but the structure is the exactly same).

However this second swiper on mobile doesn't detect touch event or at least doesn't do anything when i swipe with my finger and I got a JS file that look for the pathname on the window.

If this pathname is main.html i would do some on.ready If is events.html I would do other things (create the swiper object through a function that I made - which works previously). Some idea what I can be missing?

4

1 回答 1

0

好吧,这一切都是由于我们使用时 iOS 7 上的一个错误:-webkit-overflow-scrolling: touch这就是为什么在我在手机上使用它之前一切正常:解决方案发布在这里

于 2014-02-17T21:18:37.620 回答