-ms-scroll-snap-type property

4 out of 5 rated this helpful - Rate this topic

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

This property is read/write.

Syntax

-ms-scroll-snap-type: none | proximity | mandatory

Property values

One of the following values.

none

Initial value. Panning and scrolling are unaffected by any defined snap-points. Touch flicks will result in normal inertia.

proximity

When normal inertia would leave content near a snap point, inertia is adjusted to land exactly on the snap point. However, it is still possible to land between snap points.

mandatory

Inertia is adjusted to ensure content always lands on a snap point.

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.

See also

CSSStyleDeclaration
Windows Store apps using JavaScript Samples: HTML scrolling, panning and zooming sample
Internet Explorer Samples: Scrolling, panning, and zooming with touch input

 

 

Build date: 11/29/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.