Be careful that the width and height of the canvas do not overflow the html. The width and height set by the body and the size of the canvas must be appropriate. In addition, the body is set to overflow:hidden and no scroll bars appear; then disable the touchmove event;
document.ontouchmove = function (e) {
e.preventDefault();
return false;
}
The drawing board is too big and the phone is too small
This is the default event of the phone and cannot be stopped
Be careful that the width and height of the canvas do not overflow the html. The width and height set by the body and the size of the canvas must be appropriate. In addition, the body is set to overflow:hidden and no scroll bars appear; then disable the touchmove event;