New changes

To address the issue if press x and press mouse down at the same time.