Handle mouse events when embedded within text.

When the canvas element is embedded within flow text
and/or at a nonzero offset, mouse event coordinates
need to be corrected to produce the proper canvas coordinates. Also
double clicking the canvas shouldn't select it.
pixi-box -> three-box