Prevent region drags with the middle button in internal edit mode (#3869).