如何以及如何禁用 Javascript 中的触摸事件?

How and can I disable touch events in Javascript?

我想使用Chrome强制禁用触摸事件并通过设置为自动的选项chrome 首选项中的默认值。我知道用户可以在 chrome://flags 中禁用它,但我想以编程方式驱动它。

我注意到 'ontouchstart' in window 在每个浏览器上的解释方式不同。

是否可以在 javascript 中重置此值?

您应该能够绑定到 touchmove 事件:

$('*').bind('touchmove', false);