[BUG #7244] add Math.floor() to guarantee scrolling by integer amounts