jsignature signature not displaying on Samsung Galaxy S4

只愿长相守 提交于 2019-12-11 13:17:31

问题


Using jSignature (https://github.com/willowsystems/jSignature) within a PhoneGap, JQuery Mobile application.

When trying to sign in the content div using the Samsung Galaxy S4 the drawn line is not displaying. The signature is there when I pull the data but is for some reason not displaying. Any ideas why this might be? It has been working on other devices such as Samsung Galaxy S3, iPhone, and iPad.

<script>
    var signatureContentDiv = $("#signatureContentDiv");
    signatureContentDiv.html("");
    signatureContentDiv.jSignature();
</script>

<div id="signatureContentDiv"></div>

回答1:


I have also just run into this. For me, the error appears on the Galaxy Note 2.0 while running Chrome. I tried changing to Firefox and it works properly. The same behavior is noted when trying the demo directly on jSignatures site. I would suggest checking against their site and seeing if your device works properly to eliminate your code being the issue.

Hopefully this will get fixed.

Additional Info: I have just determined that it seems to be based on the dimensions of the image. Anything over 66,000 pixels (such as 600x110) will cause the failure. This still seems to only happen on certain devices, all running the same version of Chrome.




回答2:


Interesting that I wind up responding to the last thread I answered about this issue almost 2 years ago.

It seems the most recent update to Chrome on Android (V 43.0.2357.78) causes new failures to jSignature. If the page is in it's native size (no browser zooming), it works properly. If you zoom the screen, it fails. This is new behavior (on existing code). Other browsers seem to work properly.



来源:https://stackoverflow.com/questions/17073242/jsignature-signature-not-displaying-on-samsung-galaxy-s4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!