PhoneGap Jquery Bad Sliding
问题描述:
我已经为jQuery手机开发了一个android手机应用程序,最后我发现自己在移动应用程序前面有很棒的界面,页面之间的滑动很差,我尝试了所有类型的滑动'none''pop '....但结果相同,尤其是当我按下后退按钮。如果没有解决方案,我将被迫做出没有jQuery的Java应用程序。PhoneGap Jquery Bad Sliding
答
我有同样的错误:
$(document).bind("mobileinit", function(){
// Disable transitions between pages. Android performance in transitions is very poor.
$.mobile.defaultPageTransition = 'none'; //fade o slidefade
// Gets rid of the back problem
$.mobile.pushStateEnabled = false;
});
答
$(document).bind('pageinit', function() {
$.mobile.defaultPageTransition = 'none';
});
我用这个代码和我的幻灯片是完美的,就像在“Java应用程序”