Make the scroll bar to stop

Hi
Does anyone know How to make the vertical and horizontal scroll bar of ScrollPane component to stop when i scroll it till the end? Thanks!