try to handle middle-click