Scroller

Scroller

new Scroller()

The aim horizontal and vertical scroller component

Methods

(private, static) animateScrollH(direction, forceEnd)

Handle the animation for horizontal scrolling

Parameters:
Name Type Description
direction String

The direction animate in either up or down

forceEnd Boolean

Determines whether the windowUp event should be automatically fired when the end has been reached, used by the touch swipe

(static) animateScrollV(dir)

Animate the scroll content motion in the vertical position

Parameters:
Name Type Description
dir String

The direction of the scroll

(static) componentDidMount()

The lifecyle didMount method executed after the render

(static) componentDidUpdate()

The lifecyle didMount method executed after the render

(static) componentWillMount()

The lifecyle componentWillMount method executed before mounting

(static) componentWillReceiveProps()

The lifecyle method to determine if props are received

(static) componentWillReceiveProps()

The lifecyle method to determine if props are received

(static) componentWillUnmount()

The lifecyle will unmount method

(static) componentWillUpdate()

The lifecyle method straight after the shouldComponentUpdate

(static) constructor()

The constructor function for the Scroller component

(static) defaultProps()

Set the default props for the component in the event they were not define in the creation

(static) destroy()

Destroy the component

(private, static) onArrow()

Handle the

(private, static) onBarDown()

Handle the bar down for the respective scroller

(private, static) onOut()

Handle the mouse out of the current scroll panel and reset the active state

(private, static) onOver()

Handle the mouse over of the current scroll panel

(private, static) onTrack()

Handle the track click by the user

(static) propTypes()

Strong type the property expectations

(static) render()

Render the scroller component

(static) setSizes()

Set the size references for the different element and components

(static) shouldComponentUpdate()

The lifecyle shouldComponentUpdate method executed after the render