added scrollX and scrollY options to give us finer grained control over scrolling