msScrollSnapType property

Specifies what type of snap-point should be used for the current element.

This property is read/write.

Internet Explorer 10

 

Syntax

HRESULT put_msScrollSnapType(
  [in]  DOMString val
);

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

Property values

Type: DOMString

String format

none | proximity | mandatory

CSS information

Applies Tonon-replaced block-level elements and non-replaced inline-block elements
Mediainteractive
Inheritedno
Initial Valuenone

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.

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

 

 

Show: