As it happens, the coordinates we receive in the events are relative to the top-left of our simulated browser window, not the canvas.
In the example below, I haven't constrained the events to the canvas -- we'll get events for the entire window.
Roam your mouse or finger around the simulated screen and get an understanding of where the (0,0) point is.
|