edit smooth-scrolling function

:poodle: