title: Detecting if the user has stopped scrolling the page
body: <p>I'm trying to do something with javascript to let my chat behave a little better than how it does now.</p>
  
  <p>Since I use PrimeFaces' poll to update the panel and simulate the chat, the panel gets updated each second, making really hard to read an old message (updating the panel causes the scroll to be reset at the top of the panel).</p>
  
  <p>So I've added an <code>onscroll</code> event to the <code>div</code>, to stop polling when the user is scrolling.</p>
  
  <p>But I need a way to make it restart, so I've thought of something like putting a timer and recall the <code>poll.start()</code> a minute after the stop of the scrolling.</p>
  
  <p>Is there any way to do that?</p>