Options
All
  • Public
  • Public/Protected
  • All
Menu

Module Ui/stopBodyScrolling

Index

Functions

setForceHtmlScrollBlocking

  • setForceHtmlScrollBlocking(state?: boolean): void
  • If this is set to true the html block will also have it's overflow marked as hidden. This causes jumping but is required for some sites. On IOS clients this is true by default.

    Parameters

    • Optional state: boolean

    Returns void

stopBodyScrolling

  • stopBodyScrolling(state?: boolean): void
  • Helper to prevent the body from being scrolled with a fix for the ios 9 safari which is a pain...

    Parameters

    • Optional state: boolean

      True to stop the scrolling, false to re-enable it.

    Returns void

Generated using TypeDoc