src/main/javascript/scroll/floatz.scroll.scroller.js
/**
	 * Get / set scroll position.
	 *
	 * @param {number=} position Optional scroll position
	 * @returns {number|Scroller} Scroll position in px or scroller for chaining if used as setter
	 */
Get / set scroll position.
@param {number=} position Optional scroll position
@returns {number|Scroller} Scroll position in px or scroller for chaining if used as setter
Get / set scroll position . @param { number = } position Optional scroll position @returns { number|Scroller } Scroll position in px or scroller for chaining if used as setter
scrollPos(position) {
		if (position) {
			if (this.orientation() === Orientation.VERTICAL) {
				this._options.scrollable.scrollTop = position;
			} else {
				this._options.scrollable.scrollLeft = position;
			}
			return this;
		} else {
			return this.orientation() === Orientation.VERTICAL ? this._options.scrollable.scrollTop : this._options.scrollable.scrollLeft;
		}
	}
scrollPos ( position ) { if ( position ) { if ( this . orientation ( ) === Orientation . VERTICAL ) { this . _options . scrollable . scrollTop = position ; } else { this . _options . scrollable . scrollLeft = position ; } return this ; } else { return this . orientation ( ) === Orientation . VERTICAL ? this . _options . scrollable . scrollTop : this . _options . scrollable . scrollLeft ; } }
Get / set scroll position.
Get / set scroll position .
// console.log(position);