swiper

Open full view…

Bug or issue with jquery??

aherranzs
Tue, 12 May 2015 13:27:19 GMT

I don't know why but certain times my swipers start to fail, and I have to resize the browser screen, or even reload (and the last not always works). FAIL means: moves but static, without swipping effects, neither click property nor other beahaviours when they work properly. I have only one html file (index.html) and I show/hide the different views with JQuery (and the app interaction is also written in jQuery). Is there any special behaviour or consideration with jquery, or in only one-page web development??? Any help woul dbe very helpful. Thanks.

Vladimir Kharlampidi
Tue, 12 May 2015 21:36:53 GMT

Your problem is here: > @aherranzs > i show/hide the different views with JQuery You need to call swiper's `.update` method when you make it visible from hidden. Or, you can try to enable `observer` parameters

aherranzs
Wed, 13 May 2015 14:43:32 GMT

Thanks you too much! I have resolved, noting that if I declare in .read at certain specific orden (not in orden of appearing curiosly, it works... most of the time). I will use .update function so. Thanks!!