Trying to solve issue where when mouse leaves canvas element with mousedown; then mouse is released (mouseup) off canvas element, when mouse is moved back into canvas element it thinks mouse is still down.
The fix in this example is that mouse up and mouse down is from document rather than canvas, but then the html5 slider some how effects the canvas elements mouse input (positioning).
See here; http://coy.cat/test/a10.htm