Smooth out scrolling. Fixes issue #9