Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PageScroller

Hierarchy

  • PageScroller

Index

Constructors

  • Parameters

    • parentElement: HTMLElement

    Returns PageScroller

Properties

_scrollPercentage: number = 0
_scrollPercentageDelay: number = 0
_scrollPos: number = 0
_scrollPosDelay: number = 0
_scrollPosMem: number = 0
animator: Animator
caughtSection: null | PageScrollerSection
delaySpeed: number = 0.1
deltaMem: number = 0
dragDelaySpeed: number = 0.4
dragStop: boolean = false
dragUnlockReady: boolean = true
isAutoMove: boolean = false
isTouching: boolean = false
parentElement: HTMLElement
parentElementHeight: number
scrollReady: boolean = false
sumDelta: number = 0

Accessors

  • get scrollPercentage(): number
  • Returns number

  • get scrollPercentageDelay(): number
  • Returns number

  • get scrollPos(): number
  • Returns number

  • get scrollPosDelay(): number
  • Returns number

  • get scrollTimelinePercentage(): number
  • Returns number

Methods

  • addScrollPos(): void
  • Returns void

  • applyParentElementTransform(): void
  • Returns void

  • calcScrollProperties(deltaTime: number): void
  • Parameters

    • deltaTime: number

    Returns void

  • catch(): void
  • Returns void

  • checkThrow(scrollDelta: number): null | number
  • Parameters

    • scrollDelta: number

    Returns null | number

  • checkThrowLine(a: number, b: number, line: number): 0 | 1 | -1 | 2
  • Parameters

    • a: number
    • b: number
    • line: number

    Returns 0 | 1 | -1 | 2

  • Parameters

    Returns null | number

  • checkUnlockStopScroll(scrollDelta: number): boolean
  • Parameters

    • scrollDelta: number

    Returns boolean

  • drag(delta: number): void
  • Parameters

    • delta: number

    Returns void

  • Parameters

    • name: string

    Returns null | PageScrollerSection

  • release(snap?: number): void
  • Parameters

    • snap: number = 10.0

    Returns void

  • scroll(delta: number): void
  • Parameters

    • delta: number

    Returns void

  • scrollPosToPerecntage(scrollPos: number): number
  • Parameters

    • scrollPos: number

    Returns number

  • sortSections(): void
  • Returns void

  • update(deltaTime: number): void
  • Parameters

    • deltaTime: number

    Returns void

  • updateAutoMove(deltaTime: number): void
  • Parameters

    • deltaTime: number

    Returns void

  • updateParentElement(): void
  • Returns void

  • updateScrollPos(deltaTime: number): void
  • Parameters

    • deltaTime: number

    Returns void

Generated using TypeDoc