splite updateScrollX and updateScrollY