Reputation: 6254
Working on Canvas mobile game using CreateJS library. Everything goes smoothly except this issue:
When I exit browser by Home Button or Lock the phone, after lock screen or relaunch of browser, Canvas element is invisible. Refresh solves the problem.
I tried chrome element inspector and as you can see on the screenshot, element exists and it's on right position. I don't know why it's invisible.
Any ideas?
Upvotes: 1
Views: 340
Reputation: 94
If you grab the pixels, you'll find that it's actually still there. This is possibly a bug in Chrome 49/50 (which I'm trying to find an acceptable workaround for).
If you change the canvas width to 0 and then back to the correct size, or rotate your device a few times or press the running tabs button and swap back again you could find it'll start being visible again.
It seems to be some hibernate problem with the hardware acceleration :/
Upvotes: 1