Refactor!
Support middle click operation.