我在配置我的Wacom平板签名时遇到了问题。我没有问题地做了这个例子,但是当我把它集成到我的程序中时,它就坏了。
问题是,当我单击“签名”按钮时,需要5-10秒才能显示签名捕获。在这之后,它运行正常。
我对这个示例没有做太多修改;这是我修改过的代码的一部分:
(function($) {
$(function() {
var boton_firma = $('.captura_wacom');
boton_firma.prop('disabled', false);
boton_firma.on('click', init_firma);
});
})(jQuery);
function init_firma() {
var signatureForm = new SignatureForm($(this).parent().find('.fichero_firma').get(0), $(this));
signatureForm.connect();
}当我暂停进程时,它总是停在wacom的js包含中,名为BigInt.js。
发布于 2016-05-27 15:17:21
最后,我注释掉了demobuttons.js的一部分(wacom示例),它现在运行正常,无需等待。
在下面的示例中,该行被标记为(<---):
try {
if (m_usingEncryption) {
//m_tablet.startCapture(0xc0ffee); <---
}
} catch (e) {
m_usingEncryption = false;
}
// Enable the pen data on the screen (if not already)
m_tablet.setInkingMode(0x01);https://stackoverflow.com/questions/37297621
复制相似问题