Reset selection square coordinates on mousedown.
Delete comment.
Prevent selection square from remaining even after mouseup.

Bind/unbind drag and release events to document instead of #canvas.