简体   繁体   English

Cordova-滚动导致固定的元素闪烁/闪烁

[英]Cordova - Scrolling causes fixed elements to flicker/blink

I have tried every potential solution out there from 我已经尝试了所有可能的解决方案

-webkit-transform: translate3d(0,0,0);

to

-webkit-backface-visibility:hidden

but nothing seems to fix an element in a fixed position from flickering/blinking/dissapearing during a scroll on iOS with 但是似乎没有什么可以在iOS上滚动时将元素固定在固定位置以防止闪烁/闪烁/消失

-webkit-overflow-scrolling: touch;

As soon as the scroll stops, the divs come back. 一旦滚动停止,div就会返回。

Does anybody know what is wrong? 有人知道怎么了吗? I am using Cordova/PhoneGap 我正在使用Cordova / PhoneGap

Thanks! 谢谢!

Is the scroll an event somehow connected to the rendering? 滚动事件是否以某种方式与渲染相关联? If so there may be a case of each time the scroll event occurs it re-renders the component. 如果是这样,则每次滚动事件可能都会发生,它会重新渲染该组件。

I also found this blog post related to smoothing out rendering for Cordova. 我还发现了这篇博客文章,涉及为Cordova平滑渲染。 Hopefully, you find it helpful (you already tried one of their solutions). 希望对您有所帮助(您已经尝试过其中一种解决方案)。 https://quickleft.com/blog/4-steps-to-minimizing-rendering-issues-in-cordova-applications/ https://quickleft.com/blog/4-steps-to-minimizing-rendering-issues-in-cordova-applications/

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

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