middle mouse fixes

middle mouse does not select.
panning improvements.