Tony Brix

Results 613 comments of Tony Brix

The clearing is almost certainly an issue with the canvas resizing because a toolbar moves. Every time a canvas is resized safari clears it and I don't think there is...

If clearing on resize is the issue you can do the following: ```js window.addEventListener("resize", () => { signaturePad.fromData(signaturePad.toData()); }); ```

Is this fixed in the latest release?

@AjeethSG have you tried https://github.com/szimek/signature_pad#handling-canvas-resize

@AjeethSG what exactly is the issue you are seeing. In your video it looks like it doesn't disappear when it rotates.

That seems like an iOS issue not a signature_pad issue. We don't do anything to prevent the screen from rotating. You would be better off asking somewhere else.

I'm going to close this issue as there doesn't seem to be a clear issue. If the original issue still happens please create a new issue with more details.

I don't have an iOS device to debug this but if someone wants to contribute a fix I would be happy to merge it.

`touch-action: none` should already be set. https://github.com/szimek/signature_pad/blob/bf6c8777e036141b7425cba78e9bb6ca5cb66058/src/signature_pad.ts#L152