I tried to do this with onmousedown and onmouseup methods however this doesn\'t work the square keeps moving in canvas.I would like to know if i can ac
onmousedown
onmouseup