set scrollOffset in mousemove