For some reason Safari on iPad is throwing an error when I draw an image as follows:
INDEX_SIZE_ERR:DOM Exception 1: Index or size was negative, or greater than the allowed value
var img = new Image;
img.src = node.data.userimg;
ctx.drawImage(img, 20, 20, 38, 38);
where node.data.userimg is a URL to a twitter profile icon. This error is not thrown in normal desktop browsers. Originally these imgs were drawn at a dynamic point in relation to the node object but even setting them statically at 20, 20 is still throwing this error. Can iPad's Safari not scale images without throwing this error? The images all seem to still draw in correctly if a bit slowly on most draw calls. I fear it might just be a performance issue since so much is being drawn on the canvas (a graph representing cities and associated tweets when clicked/touched).