fixed a bug in smooth scroll that made it impossible to scroll manually