Finalize TeX move on mouse release

This allows for editing of TeX content without it flying around, if the
selection hasn't been finalized (deselected) yet. Fixes bug #79.