This PR fixes that by proxying the top-level canvas viewport into the internal getBoundingClientRect calls.
The viewport is captured during mouseenter, which should be good enough for any case that doesn't animate the <canvas> around the page while the user is interacting with it -- which would be pretty weird.
Fixes #16.
This PR fixes that by proxying the top-level canvas viewport into the internal
getBoundingClientRect
calls.The viewport is captured during
mouseenter
, which should be good enough for any case that doesn't animate the<canvas>
around the page while the user is interacting with it -- which would be pretty weird.