lib/core/utils/scroll-state.js
function setScroll(elm, top, left) {
	if (elm === window) {
		return elm.scroll(left, top);
	} else {
		elm.scrollTop = top;
		elm.scrollLeft = left;
	}
}
function setScroll(elm, top, left) {
	if (elm === window) {
		return elm.scroll(left, top);
	} else {
		elm.scrollTop = top;
		elm.scrollLeft = left;
	}
}
function setScroll ( elm , top , left ) { if ( elm === window ) { return elm . scroll ( left , top ) ; } else { elm . scrollTop = top ; elm . scrollLeft = left ; } }
set the scroll position of an element
set the scroll position of an element