fix scroll event issue

for IE8, scroll event is not triggered on #document, but only on window (other browsers work differently)
http://www.quirksmode.org/dom/events/tests/scroll.html