HTML5 canvas issues on Android 4.1.1 [closed]

一个人想着一个人 提交于 2019-12-04 18:02:15

问题


Now that Android 4.1.1 is out there on some phones I noticed that issues start to pop out using default browser and this OS.

In my case I have an application that uses web views (meaning default browser) and a lot of canvas.

I want by having this topic that everyone to post found issues and solutions if you know one.

I will start with:

Problem: duplicated canvas More info at: http://code.google.com/p/android/issues/detail?id=35474 Solution Canvas parent element should not have css property "overflow" with value "hidden"

Problem Canvas drawing looks pixelated More info: You can read: http://www.html5rocks.com/en/tutorials/canvas/hidpi/ and also test //html5rocks.com/en/tutorials/canvas/hidpi/demo/demo.html to see yourself (in my case I don't use images I build using canvas and my drawing looks pixelated) also some info can be found at //code.google.com/p/android/issues/detail?id=38470 Solution (searching for one)

Problem Canvas drawn disappears More info: I couldn't found other people encountering this and in my case it reproduces sometimes. Solution (searching for one)

PS: I cannot post link because of anti-spam

Update (3 Sep 2013): duplicate canvas issue now appears on Nexus 7 having Android 4.2.2 and/or 4.3 Also you may want to know that "duplicate canvas" issue happens only if you have "Force GPU rendering" enabled for your device.

来源:https://stackoverflow.com/questions/13071528/html5-canvas-issues-on-android-4-1-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!