-ms-touch-select property

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

This property is read/write.

Internet Explorer 10

 

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, Internet Explorer does not provide default touch selection functionality to the user.

CSS information

Applies To All elements
Media interactive
Inherited true
Initial Value grippers

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.

This property requires Windows 8 or later.

See also

CSSStyleDeclaration

Windows apps using JavaScript Samples: HTML scrolling, panning and zooming sample

Internet Explorer Samples: Scrolling, panning, and zooming with touch input

::selection