Knowledge Management

Get Involved. Join the Conversation.

Topic

    Anthony Smith
    Guided Assistance - disable auto-scrollAnswered
    Topic posted October 8, 2019 by Anthony SmithSilver Trophy: 7,500+ Points, last edited October 8, 2019, tagged Knowledge Foundation 
    29 Views, 2 Comments
    Title:
    Guided Assistance - disable auto-scroll
    Content:

    Hi everyone

    With the standard behaviour of GA it auto-scrolls down to the next line as soon as the user selected an option. This hides the selected option and in most cases the user has to scroll up to confirm what they selected and how it relates to the new choice presented to them.

    I couldn't find an option to disable the auto-scroll but if anyone managed to disable it please let me know.

    Version:
    19C

    Best Comment

    Gursimran Singh Saini

    Doable. You will have to extend the Widget: standard / knowledgebase / GuidedAssistant

    There is a function in the logic.js file of this Widget that you will have to override.

    Function name is: _appendElement

    Inside this function:
    Modify this: guide.appendChild(element).scrollIntoView();
    to this: guide.appendChild(element);

    And comment out this line: window.scrollTo(this.Y.DOM.docScrollX() - 20, this.Y.DOM.docScrollY());

    Comment

     

    • Gursimran Singh Saini

      Doable. You will have to extend the Widget: standard / knowledgebase / GuidedAssistant

      There is a function in the logic.js file of this Widget that you will have to override.

      Function name is: _appendElement

      Inside this function:
      Modify this: guide.appendChild(element).scrollIntoView();
      to this: guide.appendChild(element);

      And comment out this line: window.scrollTo(this.Y.DOM.docScrollX() - 20, this.Y.DOM.docScrollY());