src/main/javascript/scroll/plugin/floatz.scroll.plugin.header.js
/**
	 * Handle before navigation.
	 *
	 * @param event Custom scroll event
	 * @private
	 */
Handle before navigation.
@param event Custom scroll event
@private
Handle before navigation . @param event Custom scroll event @private
_handleBeforeNavigate(event) {
		if (this._header.hasClass(HEADER_FIXED_SLIDED)) {
			let target = DOM.queryUnique(event.detail.target);
			let targetPos = this.scroller().orientation() === Orientation.VERTICAL ?
				target.position().top : target.position().left;
			if (targetPos > this.scroller().scrollPos()) {
				this.scroller().offset(0);
			} else {
				this.scroller().offset(this._header.height() * -1);
			}
		}
	}
_handleBeforeNavigate ( event ) { if ( this . _header . hasClass ( HEADER_FIXED_SLIDED ) ) { let target = DOM . queryUnique ( event . detail . target ) ; let targetPos = this . scroller ( ) . orientation ( ) === Orientation . VERTICAL ? target . position ( ) . top : target . position ( ) . left ; if ( targetPos > this . scroller ( ) . scrollPos ( ) ) { this . scroller ( ) . offset ( 0 ) ; } else { this . scroller ( ) . offset ( this . _header . height ( ) * - 1 ) ; } } }
Handle before navigation.
Handle before navigation .
// Define header offset for slideout header on navigation depending on scroll orientation