Class IScroll

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(element: string, options?: IScrollOptions): IScroll

Parameters

Returns

IScroll

constructor(element: HTMLElement, options?: IScrollOptions): IScroll

Parameters

Returns

IScroll

Properties

public on: (type: string, fn: () => void) => void

Methods

public destroy()

public disable()

public enable()

public refresh()

public scrollTo(x: number, y: number, time?: number, relative?: boolean)

Parameters

  • x: number
  • y: number
  • time?: number optional
  • relative?: boolean optional

public scrollToElement(element: string, time?: number)

Parameters

  • element: string
  • time?: number optional

public scrollToElement(element: HTMLElement, time?: number)

Parameters

  • element: HTMLElement
  • time?: number optional

public stop()