我在用一个基于canvas的Signature签名组件,PC上一切正常,但一到手机上就划不动,根本签不了名。试过加了touch-action: none还是没用。
控制台也没报错,就是手指滑动完全没反应。是不是要手动处理touch事件?我现在的初始化代码是这样的:
const signaturePad = new SignaturePad(canvas, {
backgroundColor: 'rgb(255, 255, 255)',
penColor: 'rgb(0, 0, 0)'
});
暂无解答