Packagespark.components
Classpublic final class ScrollSnappingMode
InheritanceScrollSnappingMode Inheritance Object

Language Version : ActionScript 3.0
Product Version : Flex 4.6
Runtime Versions : AIR 3

The ScrollSnappingMode class defines the enumeration values for the scrollSnappingMode property of the List and Scroller classes.

See also

spark.components.List.scrollSnappingMode
spark.components.Scroller.scrollSnappingMode


Public Constants
 ConstantDefined By
  AIR-only CENTER : String = center
[static] Elements are snapped to the center of the viewport.
ScrollSnappingMode
  AIR-only LEADING_EDGE : String = leadingEdge
[static] Elements are snapped to the left (horizontal) or top (vertical) edge of the viewport.
ScrollSnappingMode
  AIR-only NONE : String = none
[static] Scroll snapping is off.
ScrollSnappingMode
  AIR-only TRAILING_EDGE : String = trailingEdge
[static] Elements are snapped to the right (horizontal) or bottom (vertical) edge of the viewport.
ScrollSnappingMode
Constant Detail
AIR-only CENTERConstant
public static const CENTER:String = center

Language Version : ActionScript 3.0
Product Version : Flex 4.6
Runtime Versions : AIR 3

Elements are snapped to the center of the viewport.

AIR-only LEADING_EDGEConstant 
public static const LEADING_EDGE:String = leadingEdge

Language Version : ActionScript 3.0
Product Version : Flex 4.6
Runtime Versions : AIR 3

Elements are snapped to the left (horizontal) or top (vertical) edge of the viewport.

AIR-only NONEConstant 
public static const NONE:String = none

Language Version : ActionScript 3.0
Product Version : Flex 4.6
Runtime Versions : AIR 3

Scroll snapping is off.

AIR-only TRAILING_EDGEConstant 
public static const TRAILING_EDGE:String = trailingEdge

Language Version : ActionScript 3.0
Product Version : Flex 4.6
Runtime Versions : AIR 3

Elements are snapped to the right (horizontal) or bottom (vertical) edge of the viewport.