- 11 Apr 2024
- 1 Minute To Read
-
Print
-
DarkLight
-
PDF
Ignore Scroll on Application Body for Flows
- Updated On 11 Apr 2024
- 1 Minute To Read
-
Print
-
DarkLight
-
PDF
Typically, when you scroll on a webpage, the entire body of the webpage moves up or down, and this can trigger various events or actions on the page.
However, when Ignore Scroll on Body is enabled, Whatfix ignores the scrollbar on the application body. Instead of relying on the traditional scrolling mechanism of the webpage, Whatfix triggers the element.scrollIntoView()
method when it needs to bring a specific element into view.
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 using element.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 will automatically scroll to the element where the step is created. This can be particularly useful in scenarios where precise control over the scrolling behavior is necessary.
Use the following steps to ignore 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 Flows.
-
Select the Ignore Scroll on Body checkbox.
-
Click Add.
-
Enable the Ignore Scroll on Body checkbox.
-
Click Save.