Improve middle mouse button selection