Thanks! I was using onMouseUp. Seems to have done the trick!