I would like to call a function when mousemove
ends.
I have an onmousemove
event listener like below which fires too many times:
window.onmousemove = (e) => { console.log(e) }
I would like to reduce calling the function too often to prevent high load.
For example, call the function once when the cursor stops.
If the are any other solutions I will be glad to try them as well.