标签: javascript google-chrome
movementX和movementY都是0.这是Chrome的错误/功能吗?我测试了firefox,它按预期工作。
movementX
movementY
document.addEventListener('mousemove', ev => console.log(ev)); // or document.addEventListener('mousemove', ev => console.log(ev.movementX, ev.movementY));