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
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