我有一个饭山PCAP多点触控显示器,我想在上面监听mousemove(touchmove)事件。但是此事件永远不会在此监视器上触发。是否有机会使以下工作正常进行,或者有其他想法让我必须在此类设备上收听?
$(this).on("mousemove", function () {
hasMoved = true;
lastMove = (new Date()).getTime();
if (isidle) {
onactive.call(this);
isidle = false;
}
});
答案 0 :(得分:0)
您尝试过触摸事件吗?
$(this).on("touchmove", function () {
hasMoved = true;
lastMove = (new Date()).getTime();
if (isidle) {
onactive.call(this);
isidle = false;
}
});
此处有更多触摸事件:touch events