-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Signature_pad Problem in Mobile #318
Comments
I'm not 100% sure why it happens, but most likely you're listening to If it is fired on scroll, then you can listen to other events like Let me know if it helps. |
not in resize, i draw signature and move finger up or down, out of pad the signature is removed. |
But the code in the demo page is listening to You can fix it in these 2 ways I mentioned:
|
Thank you @szimek for your help |
@zoldek As I understand, as per the docs browser will clear the canvas on resize event automatically. Now even i have replaced the It's not working for me on iPhone 7+, can you please put some more light what steps you followed to fix this? |
@santosh-btc Could you add |
@szimek "resize" event execute when scrolling. |
@santosh-btc So if |
@szimek I think what @santosh-btc is mentioning is related to the other library which we are using for ReactJS frontend. It is mentioned there that Though, if you have any suggestions on it, would be great. I have raised an issue in there. |
Hi @santosh-btc var windowWidth = $(window).width(); It works for me |
@zoldek Yep, got the same thing, updated the other issue as well. Basically now we need to identify if the device is mobile or not. Can we do that just by |
@ParthBarot-BoTreeConsulting what's your problem exactly ? |
@zoldek The problem is, I need my ReactJS app to work diff. in Web vs Mobile, and I am using https://github.com/blackjk3/react-signature-pad . - As you mentioned it needs to register for diff. events. I am thinking of doing it by checking the window width, like, ...
if(window.width() > 300){ //This will be compared with multiple screen width/height sizes to ensure its web.
window.addEventListener('resize', function(){ ... });
} else {
window.addEventListener('orientationchange', function(){ ... });
} Any ideas? |
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { |
@zoldek Thanks. Your solution is worked for me. You saved my day. |
Hi, I'm using React JS for a Mobile App,
Can you explain how to trigger the addEventListener ? please SOLVED I solved by : componentDidUpdate() { |
Hello there! I'm using your library to create a signature on my website and retrieving the data in CRM. Everything works fine except for signature pad JavaScript is creating too many characters when I sign the form using my mobile application, which is in turn causing some performance issues when submitting the form, is there any way that I can reduce/restrict the number of character created by signature pad when using it in mobile application. Thanks, |
Hello, I have made an Web site by using your library, so I would like to say Thank u for making this library.
Now the problem is that when we draw signature and move finger up or down, out of pad the signature is
removed
The text was updated successfully, but these errors were encountered: