framework7

Open full view…

Slider crash when using slideTo

Joe Han
Thu, 25 Sep 2014 13:01:14 GMT

Hi vladimir, I have like 50 pages in a slider container and each page is a slide. I navigate using slideTo() to certain pages. What concerns me is that whenever i click the button to slideTo certain pages, the app will crash. I tested on ios 7, 6,5. var pageNum = 12; Ive tried to set slideTo(pageNum,0) where to my understanding 0 will make the jump to certain slide without animation. What baffles me is that if i am on page 1 and jump to page 40 or any page that is near the last page there's no crash whatsoever. But if i try to jump from page 1 to middle of pages such as 25 or 27, the app will crash. Do you have any suggestion or solution to prevent crash for this type of method or do you have any other method that you can suggest? FYI i build the application using cordova and install it as an app in my device. Great framework, i would have publish the app to the app store if the crash issues is fixed. Hope you can help. Thank You !! :D

Vladimir Kharlampidi
Thu, 25 Sep 2014 17:18:46 GMT

It is hard to say like that, probably device/browser/platform memory issue, 40 pages is pretty much. Can you give me link or some fiddle so i can replicate it?