-ms-scroll-rails property
Specifies whether scrolling locks to the primary axis of motion.
This property is read/write.
Syntax
-ms-scroll-rails: none | railed
Property values
One of the following values.
none
Content moves exactly with the user's finger. This value allows free-form panning.railed
Initial value. Panning locks to the primary axis of motion.
CSS information
Applies To | non-replaced block-level elements and non-replaced inline-block elements |
Media | interactive |
Inherited | no |
Initial Value | railed |
Remarks
This property has no effect on non-scrollable elements.
Starting with Windows 8.1, this property is also supported for touchpad interaction.
This property requires Windows 8 or later.
See also
Windows apps using JavaScript Samples: HTML scrolling, panning and zooming sample
Internet Explorer Samples: Scrolling, panning, and zooming with touch input