Share via


msScrollSnapPointsY property

Defines where snap-points will be located along the y-axis.

This property is read/write.

 

Syntax

HRESULT put_msScrollSnapPointsY(
  [in]  DOMString val
);

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

Property values

Type: DOMString

String format

snapInterval(<start length>, <step length>) | snapList(<list lengths>)

CSS information

Applies To non-replaced block-level elements and non-replaced inline-block elements
Media interactive
Inherited no
Initial Value snapInterval(0px, 100%);

Remarks

This property has no effect on non-scrollable elements.

Starting with Windows 8.1, this property is also supported for mouse, keyboard, and touchpad interaction.

This property requires Windows 8 or later.

Examples

To see an example of the IHTMLCSSStyleDeclaration2::msScrollSnapPointsY property in use, see IHTMLCSSStyleDeclaration2::msScrollSnapPointsX. The IHTMLCSSStyleDeclaration2::msScrollSnapPointsX property behaves identically to the IHTMLCSSStyleDeclaration2::msScrollSnapPointsY property, but along the y-axis.

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