add getScrollY method