Added middle mouse button support.