adding scrollOffset as an option