Replaced the smoother scrolling mechanism to work with the emacs