title: Canvas presents problems when resizing the screen
body: <p>I have this design and works perfectly: <a href="http://jsfiddle.net/98Bgq/22/" rel="nofollow">http://jsfiddle.net/98Bgq/22/</a></p>
  
  <pre><code>var offsetX = canvasOffset.left;
  var offsetY = canvasOffset.top;
  var scrollX = $canvas.scrollLeft();
  var scrollY = $canvas.scrollTop();
  </code></pre>
  
  <p>But when I resize the screen of my browser, it seems the canvas begins to operate in a totally different way than normal, in the above example can not I click a few more parts of the design, how can I solve this?</p>