I have a strange problem. When I turn on hardware acceleration, if I draw a canvas element, everything that is drawn on the canvas will be redrawn at the top of the page.
If I turn off hardware acceleration, this problem does not occur.
I only personally tested it on Android 4.1.1, but earlier I noticed this problem with one of our users that I could not replicate (they were on Android 3+ at least)
I cannot capture the screenshot exactly (not too sure how to do it on Android), but I will try to break the process.
hardware accelerated
- The user fills in the usual details.
- the user scrolls the bottom of the page, extends the signature element on the canvas.
- If the user has forgotten something at the top of the page and scrolls to the top of the page
- A visual error occurs, the signature they draw appears at the top of the page.
However, without hardware acceleration, step 4 does not occur. Is there something I have to do for an HTML5 canvas?
I'm not sure what information I need to convey here - it looks like Samsung, HTC and Google Nexus Phones / tablets, so this is not an easy mistake.
I tried searching, but I always get game development threads, etc.
I really would like Hardware Accel to be turned on, this is the only problem that arises because of this - performance gains become incredibly incredible
source share