Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "prevent-scroll"

Index

Variables

Const SCROLLABLE_KEY_CODES

SCROLLABLE_KEY_CODES: number[] = [32, 33, 34, 35, 36, 37, 38, 39, 40]

Const eventListenerOptions

eventListenerOptions: AddEventListenerOptions | boolean = SUPPORTS_PASSIVE ? {passive: false,} : false

Functions

disableScroll

  • Parameters

    Returns void

enableScroll

  • enableScroll(el: Element): void
  • Parameters

    • el: Element

    Returns void

Const handleKeydown

  • handleKeydown(e: KeyboardEvent): void
  • Parameters

    • e: KeyboardEvent

    Returns void

Const handleScroll

  • handleScroll(e: Event): void
  • Parameters

    • e: Event

    Returns void

Const handleWheel

  • handleWheel(e: WheelEvent): void
  • Parameters

    • e: WheelEvent

    Returns void

Generated using TypeDoc