- core
- Context
- ElementAllocator
- ElementOutput
- Engine
- Entity
- EventEmitter
- EventHandler
- Group
- Modifier
- OptionsManager
- RenderNode
- Scene
- SpecParser
- Transform
- View
- ViewSequence
- events
- EventArbiter
- EventFilter
- EventMapper
- inputs
- Accumulator
- GenericSync
- MouseSync
- PinchSync
- RotateSync
- ScaleSync
- ScrollSync
- TouchSync
- TouchTracker
- TwoFingerSync
- math
- Matrix
- Quaternion
- Random
- Utilities
- Vector
- modifiers
- Draggable
- Fader
- ModifierChain
- StateModifier
- physics
- PhysicsEngine
- physics/bodies
- Body
- Circle
- Particle
- Rectangle
- physics/constraints
- Surface
- Collision
- Constraint
- Curve
- Distance
- Snap
- Wall
- Walls
- physics/forces
- Drag
- Force
- Repulsion
- RotationalDrag
- RotationalSpring
- Spring
- VectorField
- physics/integrators
- SymplecticEuler
- surfaces
- CanvasSurface
- ContainerSurface
- ImageSurface
- InputSurface
- TextareaSurface
- VideoSurface
- transitions
- CachedMap
- Easing
- MultipleTransition
- SnapTransition
- SpringTransition
- Transitionable
- TransitionableTransform
- TweenTransition
- WallTransition
- utilities
- KeyCodes
- Timer
- Utility
- views
- ContextualView
- Deck
- DrawerLayout
- EdgeSwapper
- FlexibleLayout
- Flipper
- GridLayout
- HeaderFooterLayout
- Lightbox
- RenderController
- ScrollContainer
- Scroller
- Scrollview
- SequentialLayout
- widgets
- NavigationBar
- TabBar
ScrollSync
Handles piped in mousewheel events. Emits 'start', 'update', and 'end' events with payloads including: delta: change since last position, position: accumulated deltas, velocity: speed of change in pixels per ms, slip: true (unused). Can be used as delegate of GenericSync.
Overview
Options
direction
minimumEndSpeed
rails
scale
stallTime
Methods
getOptions
setOptions
ScrollSync(options)
Constructor Parameters
options
Object
overrides of default options
direction
Number
Pay attention to x changes (ScrollSync.DIRECTION_X), y changes (ScrollSync.DIRECTION_Y) or both (undefined)
minimumEndSpeed
Number
End speed calculation floors at this number, in pixels per ms
rails
Boolean
whether to snap position calculations to nearest axis
scale
Number | Array.Number
scale outputs in by scalar or pair of scalars
stallTime
Number
reset time for velocity calculation in ms
Methods
getOptions()
Return entire options dictionary, including defaults.
Returns
Object
configuration options
setOptions(options)
Set internal options, overriding any default options
Parameters
options
Object
overrides of default options