fix middle mouse drag