When you scroll on a webpage, the entire body of the webpage moves up or down, which can trigger various events or actions on the page.
Enabling Ignore Scroll on Body ensures that Whatfix ignores the scrollbar on the application body. Instead of relying on the traditional scrolling mechanism of the webpage, Whatfix uses the JavaScript method element.scrollIntoView() to bring a specific element into view when required.
Info:
The
element.scrollIntoView()method is a JavaScript function that scrolls the specified element into the visible area of the browser window. It is used when you want to ensure that a particular element is within the user's view. By usingelement.scrollIntoView(), Whatfix ensures that the focus is specifically on the element it wants to highlight or interact with, rather than relying on the general scrolling behavior of the webpage.
For example, consider that you have a Flow step that shows only after you scroll to a certain element. If you have Ignore Scroll on Body enabled, Whatfix automatically scrolls to the element where the step is created. The configuration can be particularly useful in scenarios where precise control over the scrolling behavior is necessary.
Use the following steps to ignore the scroll on the application body for all Flows:
-
On the Whatfix Guidance dashboard, click Settings.

-
Click Advanced customisation.

-
Click Technical configuration.

-
Click Add preferences.

-
Click Flow.

-
Select the Ignore Scroll on Body checkbox.

-
Click Add.

-
Enable the Ignore Scroll on Body checkbox.

-
Click Save.

Note:
Once you save the changes, you must perform a Push to Production for the changes to appear on the page.