EN
Este contenido no se encuentra disponible en su idioma, pero aquí tiene la versión en inglés.

pointerEnabled property

Deprecated. Indicates if pointer events are fired for pointing input.

Note  This property has been deprecated in the latest version of the W3C Pointer Events specification. The PointerEvent interface can be used as an alternative for detecting pointer event support.

This property is read-only.

Syntax

JavaScript
bEnabled = object.pointerEnabled

Property values

Type: boolean

Returns true if pointer input features are supported.

Standards information

Remarks

Because the pointerEnabled property has been deprecated in the W3C Pointer Events specification, the recommended way to detect pointer event support is to check for the PointerEvent interface:


if(window.PointerEvent) {
   o.addEventListener("pointerdown", handler);
} else if(window.MSPointerEvent) {
   o.addEventListener("MSPointerDown", handler);
}

As of Internet Explorer 11, the Microsoft vendor prefixed version of this property (msPointerEnabled) is no longer supported and may be removed in a future release.

See also

navigator
PointerEvent
maxTouchPoints
Windows Store apps using JavaScript Samples: HTML scrolling, panning and zooming sample

 

 

Mostrar:
© 2014 Microsoft