Class: Scroller

lime.ui.Scroller

new lime.ui.Scroller()

Source:

Extends

Summary

Members
<static> Direction
Directions of the scroller.
<static, constant> FRICTION :number
How fast to slow down
<static, constant> OFFSET :number
Offset that can be dragged over the edge
<static, constant> OFFSET_LAG :number
Factor to slow down if over the edge
Methods
appendChild()
cancelEvents()
Cancel all current movement events.
<private> captureVelocity_()
Capture the scrolling velocity to get some throwing motion after release.
dispose()
Cleans up event listeners and references
<private> downHandler_(e)
Handle down events
getDirection() → {lime.ui.Scroller.Direction}
Returns the direction of the scroller (horizontal/vertical)
measureLimits()
Measure the contents of the scroller and set up high and low limits.
<private> moveHandler_(e)
Handle move events.
removeChild()
scrollTo(offset, opt_duration)
Scroll to specific offset in pixels
setAnchorPoint()
setDirection(direction) → {lime.ui.Scroller}
Set the direction of the scroller (horizontal/vertical)
<private> upHandler_(e)
Handle release(up) events.
Inherited
lime.Sprite.addEventListenerlime.Sprite.addTransitionlime.Sprite.calcRelativeQualitylime.Sprite.clearTransitionlime.Sprite.createDomElementlime.Sprite.getAnchorPointlime.Sprite.getAutoResizelime.Sprite.getBoundingBoxlime.Sprite.getChildAtlime.Sprite.getChildIndexlime.Sprite.getCSS3DTransformsAllowedlime.Sprite.getDeepestDomElementlime.Sprite.getDeepestParentWithDomlime.Sprite.getDirectorlime.Sprite.getDirtylime.Sprite.getFilllime.Sprite.getFramelime.Sprite.getHiddenlime.Sprite.getMasklime.Sprite.getNumberOfChildrenlime.Sprite.getOpacitylime.Sprite.getParentlime.Sprite.getParentStack_lime.Sprite.getPositionlime.Sprite.getQualitylime.Sprite.getRelativeQualitylime.Sprite.getRotationlime.Sprite.getScalelime.Sprite.getScenelime.Sprite.getSizelime.Sprite.getStrokelime.Sprite.hitTestlime.Sprite.localToNodelime.Sprite.localToParentlime.Sprite.localToScreenlime.Sprite.measureContentslime.Sprite.needsDomElementlime.Sprite.parentToLocallime.Sprite.removeAllChildrenlime.Sprite.removeChildAtlime.Sprite.removeDomElementlime.Sprite.removeEventListenerlime.Sprite.runActionlime.Sprite.screenToLocallime.Sprite.setAllow3DCSSTransformslime.Sprite.setAutoResizelime.Sprite.setChildIndexlime.Sprite.setDirtylime.Sprite.setFilllime.Sprite.setHiddenlime.Sprite.setMasklime.Sprite.setOpacitylime.Sprite.setPositionlime.Sprite.setQualitylime.Sprite.setRendererlime.Sprite.setRotationlime.Sprite.setScalelime.Sprite.setSizelime.Sprite.setStrokelime.Sprite.updatelime.Sprite.updateDomElementlime.Sprite.updateLayoutlime.Sprite.wasAddedToTreelime.Sprite.wasRemovedFromTree

Members

<static> Direction

Directions of the scroller.
Properties:
Name Type Default Description
HORIZONTAL 0
VERTICAL 1
Source:

<static, constant> FRICTION :number

How fast to slow down
Source:

<static, constant> OFFSET :number

Offset that can be dragged over the edge
Source:

<static, constant> OFFSET_LAG :number

Factor to slow down if over the edge
Source:

Methods

appendChild()

Source:
See:

cancelEvents()

Cancel all current movement events.
Source:

<private> captureVelocity_()

Capture the scrolling velocity to get some throwing motion after release.
Source:

dispose()

Cleans up event listeners and references
Source:

<private> downHandler_(e)

Handle down events
Parameters:
Name Type Description
e lime.events.Event Event.
Source:

getDirection() → {lime.ui.Scroller.Direction}

Returns the direction of the scroller (horizontal/vertical)
Source:
Returns:
Scroll direction.
Type
lime.ui.Scroller.Direction

measureLimits()

Measure the contents of the scroller and set up high and low limits.
Source:

<private> moveHandler_(e)

Handle move events.
Parameters:
Name Type Description
e lime.events.Event Event.
Source:

removeChild()

Source:
See:

scrollTo(offset, opt_duration)

Scroll to specific offset in pixels
Parameters:
Name Type Argument Description
offset number Offset in pixels.
opt_duration number <optional>
Animation duration.
Source:

setAnchorPoint()

Source:
See:

setDirection(direction) → {lime.ui.Scroller}

Set the direction of the scroller (horizontal/vertical)
Parameters:
Name Type Description
direction lime.ui.Scroller.Direction Direction.
Source:
Returns:
object itself.
Type
lime.ui.Scroller

<private> upHandler_(e)

Handle release(up) events.
Parameters:
Name Type Description
e lime.events.Event Event.
Source: