Cordova/Phonegap: JQuery UI Accordion doesn't scroll anymore on ios8

你。 提交于 2019-12-11 09:19:23

问题


I got an App for iOS written within the cordova framework (html/css/js). To display contents it uses the Accordion from JQuery UI. The Accordion has fixed height so that the contents needs scrolling when it's to large for one page. Til the iOS8 Update everything worked fine, now i can't scroll the contents anymore. Scrolling works when i tap on the header of the accordion but not with then content.

Anyone an idea what could cause this?

Things i checked
- cordova up to date
- jQuery up to date
- XCode up to date
- with Safari Debugger i don't find any diferences in CSS
- same App works on ios 7.1
- difference in behaviour also present in emulator of xcode

Thanks

Christian


回答1:


I had the same problem. I had to update my cordova to the latest (3.6.3) and my scrolling started working again.

Update:

I just ran across another issue that appears to break scrolling in iOS 8. I had been using bouncefix.js, but it appears that this library isn't compatible with the latest cordova and iOS 8. Simply commenting out this javascript library re-enabled scrolling in my app.

Prior to iOS 8, bouncefix.js worked pretty well and didn't cause any issues with scrolling.




回答2:


I had the same problem, and was looking for the solution for a day, but I have fuond it. I am using Tocca.js: https://github.com/GianlucaGuarini/Tocca.js instead of jQuery swipe event plugin, and it can handle both scroll and swipe events. Fortunately it is use the same function names, so you can simply change the .js files.

Thanks a lot for the answer at an other question: https://stackoverflow.com/a/23879655/2576454



来源:https://stackoverflow.com/questions/25950558/cordova-phonegap-jquery-ui-accordion-doesnt-scroll-anymore-on-ios8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!