prevent scrolling of complete document if the view is scrolled to the ve...

prevent scrolling of complete document if the view is scrolled to the very top or bottom