Adding select event bindings to respond to mouse highlighting (which changes the horizontal offset of the input element)