this function is called every 30ms
function draw(){
context.clearRect(0, 0,canvas.width, canvas.height);
context.drawImage(displayme, plot.position.x, plot.position.y, plot.width, plot.height);
}
and some mouse events modify the displayme.src and plot position
but when the new src is being loaded, all the other javascript gets blocked and cant move the (previously loaded) image
i've also tried using a different Image object and assigning it to "displayme" but it didn't work
any help would be most welcome