ehayon/Canvas — pull request #1 by prezjordan (2012-03-31 22:35:59+00:00)
Title: Mouse hit detection fix

Hit detection has been modified based on the offset of the canvas element, combined with the scroll position of the window.

The use of

```
e.x
e.y
```

has been modified to

```
var x = e.x + document.body.scrollLeft - $(canvas).offset().left;
var y = e.y + document.body.scrollTop - $(canvas).offset().top;
```

In both the `mousedown()` and `mousemove()` callback methods.