简体   繁体   English

Phonegap过渡jquerymobile

[英]Phonegap transition jquerymobile

I have a problem with on transition jquery mobile, that for few milliseconds/seconds a white screen appears, which is pretty visible during transitions. 我在转换jquery移动设备上遇到问题,在几毫秒/秒内出现白屏,这在转换过程中非常明显。 Also I tried setting defaultPageTransition to none but that also didn't work. 此外,我尝试将defaultPageTransition设置为none,但这也无效。 The problem still persists. 问题仍然存在。

When I clicked on the link it changes page, but before changing page, it hides current page and after that white screen appears and then transition is made to next page. 当我点击链接时,它会更改页面,但在更改页面之前,它会隐藏当前页面,然后出现白色屏幕,然后转换到下一页。 So here the White screen part is a problem. 所以这里白屏部分是个问题。 I was unable to replicate this problem on web browser or Testing through AVD Manager on emulator or Device. 我无法在Web浏览器上复制此问题或在仿真器或设备上通过AVD Manager进行测试。 But issue occurs when making phonegap build and testing through the build. 但是在通过构建进行phonegap构建和测试时会出现问题。

You can run that page in Chrome browser and you can see in the Console section for any errors (Press F12 to open the Console) 您可以在Chrome浏览器中运行该页面,您可以在控制台部分查看是否有任何错误(按F12打开控制台)

There you may find some errors that should be resolved. 在那里你可能会发现一些应该解决的错误。

You can try out to turn off the page transitions.Jquery mobile is still not very smooth in page transitions.May be that is causing the problem. 您可以尝试关闭页面转换。在页面转换中,Jquery mobile仍然不是很流畅。可能是导致问题。

$(document).on( "mobileinit", function() {
        $.mobile.defaultPageTransition = "none";
    });

go through this and also following 通过这个以及跟随

jQuery Mobile flickering screen during transitions 过渡期间jQuery Mobile闪烁屏幕

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM