Can js determine whether the mouse is moving or still?

determines that it is true when the mouse is still active for a few seconds and then it is false.

Jul.29,2021

when adding mousemove, movement to window, set the variable to false; when true, is quiescent

  

mousemove events can achieve your effect

Menu