msScrollRails property

Specifies whether scrolling locks to the primary axis of motion.

This property is read/write.

 

Syntax

HRESULT put_msScrollRails(
  [in]  DOMString val
);

HRESULT get_msScrollRails(
  [out] DOMString **ptr
);

Property values

Type: DOMString

String format

none | railed

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.

Requirements

IDL

Mshtml.idl

See also

Windows apps using JavaScript Samples: HTML scrolling, panning and zooming sample

Internet Explorer Samples: Scrolling, panning, and zooming with touch input