msContentZoomSnapType property

Specifies how zooming is affected by defined snap-points.

This property is read/write.

Internet Explorer 10

 

Syntax

HRESULT put_msContentZoomSnapType(
  [in]  DOMString val
);

HRESULT get_msContentZoomSnapType(
  [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-zoomable elements. See IHTMLCSSStyleDeclaration2::msContentZooming for details on zoomable elements.

When a user pans or scrolls and then lifts his or her contact (for instance, a finger), the content can continue to move with inertia. Snap-points can change the animation that runs when the user lifts his or her finger so that you can adjust where the content will stop. By placing snap-points, you can make it easy for your users to manipulate your content and make your content stop at convenient or key places.

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
msContentZoomFactor
msZoomTo
Internet Explorer Samples: Scrolling, panning, and zooming with touch input
msContentZoomFactor
msZoomTo

 

 

Show: