Are there any javascript/jQuery events that are like an “onmousestop” or any events equivalent to “onmousewheel” for an optical mouse and/or touchpad?
I am trying to create a Javascript-based inactivity timeout for my site. The function which controls inactivity is very simple; a form value recording the "initial time" is reset concomitantly with any event (the assumption being any event should be indicative of activity): function ResetTimeout() { document.forms.TimeoutForm.initialtime.value = (new Date().getTime()) / 1000; }//This function is called on each event, such as an onclick In a separate function, when new Date().getTime() (that is, the time at this moment) - document.forms.TimeoutForm.initialtime.value (in milliseconds) > 720000