Apache Flex 4.16.0 API Reference | All Packages | All Classes | Index | Frames No Frames |
ScrollSnappingMode

Package | spark.components
Class | public final class ScrollSnappingMode
Inheritance | ScrollSnappingMode 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

| Constant | Defined By
--- | --- | ---
|  | CENTER : String = center [static] Elements are snapped to the center of the viewport. | ScrollSnappingMode
|  | LEADING_EDGE : String = leadingEdge [static] Elements are snapped to the left (horizontal) or top (vertical) edge of the viewport. | ScrollSnappingMode
|  | NONE : String = none [static] Scroll snapping is off. | ScrollSnappingMode
|  | TRAILING_EDGE : String = trailingEdge [static] Elements are snapped to the right (horizontal) or bottom (vertical) edge of the viewport. | ScrollSnappingMode

Constant Detail

CENTER | Constant

`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.

LEADING_EDGE | Constant |

`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.

NONE | Constant |

`public static const NONE:String = none`

Language Version : | ActionScript 3.0

Product Version : | Flex 4.6

Runtime Versions : | AIR 3

Scroll snapping is off.

TRAILING_EDGE | Constant |

`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.

Sun Mar 5 2017, 03:42 PM +11:00