-ms-touch-select property

Toggles the "gripper" visual elements that enable touch text selection.

This property is read/write.

Syntax

-ms-touch-select: grippers | none

Property values

One of the following values.

grippers

Initial value. Grippers are always on. In addition, selection will start even if an onclick, onmsgesturetap, or onmouseup handler is present.

none

Grippers are always off.

In addition to hiding the grippers, a Windows Store app using JavaScript does not provide default touch selection functionality to the user.

CSS information

Applies ToAll elements
Mediainteractive
Inheritedtrue
Initial Valuegrippers

Remarks

The -ms-touch-select property should only be used by applications that provide their own selection experience. Most other applications should use the -ms-user-select property instead.

If you choose to hide the grippers, you should ensure that users have a mechanism for selecting text via touch. To find out how to do this using JavaScript, see the HTML5 Selection APIs.

This property has no effect on mouse, keyboard, or touchpad interaction.

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
::selection

 

 

Show:
© 2014 Microsoft