I don't know if is this the correct section to post it, so if a moderator thinks that moving the post is necessary, no problemo.
Well, I have a problem with canvas. I use jquery to resize the canvas element and its contents don't lose their original coordinates. When the canvas is running and context is painting I use a jquery script that checks the browser's width and height and it resizes the canvas acording to it. The problem comes when I check the mouse click coordinates on the resized canvas: An element keeps with the original coordinates (no matter how resized the canvas is, if the original X was 900 it keeps it and the code runs fine, how it have to be) but the click X changes... if I have a resized canvas with for example X:500 Y:300 the click X changes acording the new resolution. Is there some way to get the original click X Y coordinates like the canvas elements do, no matter how much resized is? Thanks!!!