Added click cancel event for piston ends