Handle scrolled browser window properly
Handle scrolled browser window properly

Using our own function instead of offsetX because offsetX is not supported
in Firefox and many browsers don't implement it correctly. We're probably
being overcautious, though, as we're unlikely to have borders and padding
in our canvas.

bpl/rts37