Fix for automatic scrolling not working in IE.