src/main/javascript/scroll/plugin/floatz.scroll.plugin.anchor.js
/**
     * Handle click on scroll anchor.
     *
     * @param anchor Reference to scroll anchor that has been clicked
     * @param event Click event
     * @private
     */
Handle click on scroll anchor.
@param anchor Reference to scroll anchor that has been clicked
@param event Click event
@private
Handle click on scroll anchor . @param anchor Reference to scroll anchor that has been clicked @param event Click event @private
_handleClick(anchor, event) {
        if (anchor.attr("href").startsWith("#")) {
            _navigate(this.scroller(), anchor.attr("href"), this.options().updateHistory,
                _handleBeforeAction(anchor, event, this),
                _handleAfterAction(anchor, event, this)
            );
        }
    }
_handleClick ( anchor , event ) { if ( anchor . attr ( "href" ) . startsWith ( "#" ) ) { _navigate ( this . scroller ( ) , anchor . attr ( "href" ) , this . options ( ) . updateHistory , _handleBeforeAction ( anchor , event , this ) , _handleAfterAction ( anchor , event , this ) ) ; } }
Handle click on scroll anchor.
Handle click on scroll anchor .
// Use scroll navigation only when href contains an id