Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
IScroll
Class IScroll
Index
Constructor methods
constructor
Properties
on
Methods
destroy
disable
enable
isReady
refresh
scrollTo
scrollToElement
scrollToPage
stop
zoom
Constructor methods
constructor
(
element
:
string
, options
?:
IScrollOptions
)
:
IScroll
Parameters
element:
string
options?:
IScrollOptions
optional
Returns
IScroll
constructor
(
element
:
HTMLElement
, options
?:
IScrollOptions
)
:
IScroll
Parameters
element:
HTMLElement
options?:
IScrollOptions
optional
Returns
IScroll
Properties
public
on
:
(type: string, fn: () => void) => void
Methods
public
destroy
(
)
public
disable
(
)
public
enable
(
)
public
isReady
(
)
:
boolean
Returns
boolean
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
scrollToPage
(
pageX
:
number
, pageY
:
number
, time
?:
number
)
Parameters
pageX:
number
pageY:
number
time?:
number
optional
public
stop
(
)
public
zoom
(
x
:
number
, y
:
number
, scale
:
number
, time
?:
number
)
Parameters
x:
number
y:
number
scale:
number
time?:
number
optional
Globals