Skip to main content
Version: 4.0.0

AnimatingState

⚠️ This class is for internal use only.
class AnimatingState extends State

A state that activates when Flicking's animating by user input or method call

Properties

holding

readonly

Whether user is clicking or touching

Type: false

animating

readonly

Whether Flicking's animating

Type: true

Methods

onHold

inherited

An event handler for Axes's hold event

Returns: void

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
ctxobjectyesEvent context
ctx.flickingFlickingyesAn instance of Flicking
ctx.axesEventobjectyesA hold event of Axes
ctx.transitTofunctionyesA function for changing current state to other state

onChange

inherited

An event handler for Axes's change event

Returns: void

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
ctxobjectyesEvent context
ctx.flickingFlickingyesAn instance of Flicking
ctx.axesEventobjectyesA change event of Axes
ctx.transitTofunctionyesA function for changing current state to other state

onRelease

inherited

An event handler for Axes's release event

Returns: void

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
ctxobjectyesEvent context
ctx.flickingFlickingyesAn instance of Flicking
ctx.axesEventobjectyesA release event of Axes
ctx.transitTofunctionyesA function for changing current state to other state

onAnimationEnd

inherited

An event handler for Axes's animationEnd event

Returns: void

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
ctxobjectyesEvent context
ctx.flickingFlickingyesAn instance of Flicking
ctx.axesEventobjectyesA animationEnd event of Axes
ctx.transitTofunctionyesA function for changing current state to other state

onFinish

inherited

An event handler for Axes's finish event

Returns: void

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
ctxobjectyesEvent context
ctx.flickingFlickingyesAn instance of Flicking
ctx.axesEventobjectyesA finish event of Axes
ctx.transitTofunctionyesA function for changing current state to other state