Making responsive signature pad #794
Unanswered
julianwitzel
asked this question in
Q&A
Replies: 1 comment
-
I'm pretty sure there is something strange going on with jsfiddle. If I add a log statement to the resizeCanvas function it only gets called once at the beginning. Not ever when the window is resized. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to make a signature pad canvas work responsively?
My challenge is the following:
// OR //
Right now I am sure the issue comes from this line in my code:
signaturePad.fromData(signaturePad.toData());
Commenting this out or not decides the outcome of my two observed behaviors.
Does someone have an easy solution to this? I am getting crazy about it already. I also created a JS Fiddle for you to see what I have so far:
https://jsfiddle.net/xetrzi9/hort1ubj/3/
Additional info:
When scrolling on the phone it also resets the input for some reason which is really weird.
Beta Was this translation helpful? Give feedback.
All reactions