Reputation:
I am doing an android application in Phonegap. In canvas I made a moving image by touching.I tested in the device having different versions
when I run 4.1, 4.2 or 4.3 the image getting duplicating while moving.all other version is fine
i try by applying canvas background color and opacity, but still duplicating
is there any solution for this
Thanks in advance
Upvotes: 6
Views: 67
Reputation:
i check the application 4.0,4.1,4.2,4.3 and 4.4
only this problem in jelly bean
var canvas = document.getElementById('canvas');
canvas.style.opacity = 0.99;
setTimeout(function() {
canvas.style.opacity = 1;
}, .01);
This code is working perfectly for me
Upvotes: 1
Reputation: 2258
I'm not sure that this is really a cause of the RAM memory. You are trying it on a different device, so there may be a differente result.
My advice is to implement a clearing function and call it after the movement .. but it's very difficult to say anything relevant when you didn't provide any working code or sample.
Upvotes: 0