Since: BlackBerry 10.2.0

#include <bb/cascades/ScrollRailsPolicy>

Rails policies that can be applied to the scrolling behavior of a scrollable control (for example, a ScrollView).

A rails policy specifies how scrolling behaves in response to a user's dragging gestures. If scrolling is not locked to an axis, the control will scroll in any direction, emulating the dragging movements of the user. Even if the user's intent is to scroll in a single direction (i.e. vertically), slight movements along the horizontal axis will be reflected as well.

If scrolling is locked, and a dragging gesture occurs roughly along a particular axis, railing is enabled and scrolling becomes locked along that axis.


Public Types Index

enum Type

Default 0x0, None 0x1, LockNearAxes 0x2

Public Types


The rails policies for scrolling.


BlackBerry 10.2.0

Default 0x0

The default rails policy.

None 0x1

No rails policy.

Railing is not applied, and free scrolling is permitted.


BlackBerry 10.2.0

LockNearAxes 0x2

Enables railing when scrolling occurs along a particular axis.

If scrolling is initiated roughly along a single axis, railing is enabled and scrolling will lock to that axis. If scrolling is not initiated along any single axis, scrolling will not lock.


BlackBerry 10.2.0

Last modified: 2014-09-30

Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus