I'm using Phonegap 2.7.0, Android 4.2.2.
I'm trying to clear parts of a canvas, when I use the clearRect() function on my actual device, the screen turns blue. But when I do it with the Android emulator, it works fine.
What is wrong here ?
Thanks
I'm using Phonegap 2.7.0, Android 4.2.2.
I'm trying to clear parts of a canvas, when I use the clearRect() function on my actual device, the screen turns blue. But when I do it with the Android emulator, it works fine.
What is wrong here ?
Thanks
我也遇到过这个问题。clearRect()
为了解决这个问题,您可以再传递一个像素,而不是将 realsize 传递给,例如clearRect(0,0,width+1,height+1)
。
详细信息可以在这里找到:http: //browser.colla.me/show/canvas_crash_on_repeatedly_repaint