octalmage / robotjs

Node.js Desktop Automation.
http://robotjs.io
MIT License
12.24k stars 933 forks source link

Why the mousemove event is only listened to and output once #728

Open zhang1395hao opened 1 year ago

zhang1395hao commented 1 year ago

let imageDom = $('.image-upload-btn').eq(0) imageDom.get(0).addEventListener('mousemove', function (e) { let weizhi = e.x + ':' + e.y; cset.push(weizhi); console.log(cset) // [110,111] }); await autoScrollDom(imageDom[0], true, true) Whether I use moveMouse or moveMouseSmooth, the result is that only one move event is output