Changed scrolling to views instead of document.