Home > widget-integration > InstantSearchSelectors > isThemeScrollLocked

InstantSearchSelectors.isThemeScrollLocked() method

Check whether a theme scroll lock is currently engaged.

Looks for the scroll-lock attribute on <html> (Horizon 2025+) and on <body> (variants that lock on the body instead).

Signature:

isThemeScrollLocked(): boolean;

Returns:

boolean

True if page scrolling is locked by the theme