Doesnt work within an Android WebView
Closed this issue · 3 comments
caltv commented
When I use this within a native Android WeWiew (4.4+) no lines are drawn...The page loads successfully and no errors are thrown, however it works fine in an the Chrome browser on the same device...
caltv commented
The answer, hardware accelerated canvas rendering is not supported in Chromium WebView
Fix is webView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
soulwire commented
Thanks for the report. As far as you know can anything be done in the sketch code to mitigate this? If not I'll close the issue though your solve in the comment above will help anyone who has come across this.
caltv commented
I don't think the JS Canvas API gives an option to enable//disable hardware acceleration, so you can close...