MSPointerHover

Non-standard
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

MSPointerHover is triggered when a contact (normally a pen) moves over an element without touching the surface.

This proprietary method is specific to Internet Explorer and, as of Internet Explorer 11, this event has been deprecated. Starting with IE11 the pointermove event will fire for all pen movement (regardless if its hovering or not).

Syntax

object.addEventListener("MSPointerHover", handler, useCapture)

Event handler parameters

  • handler[in], type=function, Function name to be executed when the event is triggered.

Synchronous: Yes

Bubbles: Yes

Cancelable: Yes

Example

var eventTypes = [
   "MSPointerUp", "MSPointerDown", "MSPointerOut", 
   "MSPointerOver", "MOSPointerCancel", "MSPointerHover"];


eventTypes.forEach(function (eventType) {
   targetElem.addEventListener(eventType, function (e) {
   }), true;
});

See also

Document Tags and Contributors

Contributors to this page: mattwojo, erikadoyle
Last updated by: mattwojo,