Android WebView Fails to Completely Render Content Until User Interaction

后端 未结 1 1449
春和景丽
春和景丽 2021-02-18 23:06

I have a custom class extending WebView that displays HTML content. When the user clicks a link in the HTML document, I calculate an X value to scroll to, and then use scrollTo(

1条回答
  •  有刺的猬
    2021-02-18 23:35

    Well i am having the exact same problem here with that tablet, the only difference is that i am using iscroll to do all the scrolling. The solution i am using for this problem is to "scroll" via JavaScript a hidden DIV and that fixed the problem. i hope this can help anyone with the same problem. If you use iscroll they have a method to "scroll" to a fixed position, maybe that can help you also, if not is not that hard to detect the touchmove or mousemove events. The point here is that you just need to fake a scroll anywhere on the html even if is not visible.

    0 讨论(0)
提交回复
热议问题