By using these events the user will be able to easily cancel moving of a shape in certain conditions.