Fixed "RangeError in scroller when used with mousewheel" Bug 13403 on Redmine

Added a check so that if the document scrolled a distance in 0 time. For example in a single mouse wheel scroll. It behave as this occured over the course of a single frame at 60fps. example in a single mouse wheel scroll. It behave as this occured over the course of a single frame at 60fps.