Fix #58: Restrict when text highlighting happens

Only highlight text if both the mousedown and mouseup events fired
in the text element.