For whatever reason, I cannot seem to draw an SVG to a canvas. Therefore, the selection test function does not work. The current solution is to just skip the logic in Firefox and use the standard bounding-box selection.