src/main/javascript/scroll/floatz.scroll.slider.js
/**
 * Adjust slider item heights, slider scroll position and current slider item height depending on window size.
 *
 * @param {Scroller} scroller
 * @param {DOMElement} container
 * @param {Array} items
 * @param {number} position
 * @private
 */
Adjust slider item heights, slider scroll position and current slider item height depending on window size.
Adjust slider item heights slider scroll position and current slider item height depending on window size .
function _handleResize(scroller, container, items, position) {
	items.forEach((item) => {
		item.width(container.width());
	});
	scroller.scrollPos(position * container.width());
	_adjustItemHeight(container, items[position]);
}
function _handleResize ( scroller , container , items , position ) { items . forEach ( ( item ) => { item . width ( container . width ( ) ) ; } ) ; scroller . scrollPos ( position * container . width ( ) ) ; _adjustItemHeight ( container , items [ position ] ) ; }
Adjust slider item heights, slider scroll position and current slider item height depending on window size.
Adjust slider item heights slider scroll position and current slider item height depending on window size .
// Adjust width of each screen // Adjust scroll position // Adjust height of active slider item