Fix choppy scrolling. Thanks @chakkos. Fixes #5