Open
Description
In mobile, when we scroll up/down rapidly the addressbar appears and I think that fires the resize event, so the signature is cleared. Actually it should not happen, as per szimek/signature_pad#318 signature should be cleared on orientationchange
event in mobile.
We are trying to change window.addEventListener("resize", this._resizeCanvas.bind(this));
to window.addEventListener("orientationchange", this._resizeCanvas.bind(this));
in here
Can you please suggest a fix?
- In browser, resize should work as expected, should clear the canvas if the size changes.
- In mobile, it should works same if we change the orientation, but on scrolling it should work fine.
Metadata
Metadata
Assignees
Labels
No labels