trying to figure out mouseclick with canvas I used clientX and clientY, but the result seems to be a bit off. But at least I got something to work for now. http://jsfiddle.net/0wr7c6mw/