This is a scrollable view. It sends two different events, "beforescroll" and
"afterscroll" when it is scrolled. In this demo,
reception of afterscroll events are logged to the console, and scrolling more
than 40 pixels before or after the content of the view is disabled by the beforescroll
handler.