SDKLauncher-Android icon indicating copy to clipboard operation
SDKLauncher-Android copied to clipboard

Pages partially rendered - Must tap or inspect to get it fully rendered!

Open jmgeffroy opened this issue 10 years ago • 1 comments

We're experiencing really, really weird behaviors of the WebView on Android, 4.4.2 and 5.0.2: when we navigate to a new chapter, some contents is not displayed, but the page layout is (or seems to be) correct. For example:

  • with "Moby Dick", the chapter titles are not displayed, but the pargaraphs below are OK.
  • with "Accessible Epub 3", the first page of the chapter is completely blank.

In both cases, the page gets fully rendered as soon as you tap the webview, or... inspect it with Chrome ! We're currently using the "1.0" release.

jmgeffroy avatar Feb 17 '15 10:02 jmgeffroy

I experienced a similar WebView (Chromium) bug before, but not on Android. One suggestion that comes to mind, try setting the configuration boolean enableGPUHardwareAccelerationCSS3D to true: https://github.com/readium/readium-shared-js/blob/develop/js/views/reflowable_view.js#L94 https://github.com/readium/readium-shared-js/blob/develop/js/models/viewer_settings.js#L55 (although bare in mind that forcing a GPU-accelerated rendering path presents its own set of problems) Please let us know if it helps.

danielweck avatar Feb 17 '15 11:02 danielweck