Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

pointerleave

この記事はまだボランティアによって 日本語 に翻訳されていません。ぜひ MDN に参加して翻訳を手伝ってください!

The pointerleave event is fired when a pointing device is moved out of the hit test boundaries of an element. For pen devices, this event is fired when the stylus leaves the hover range detectable by the digitizer.

General info

Specification
Pointer Events
Interface
PointerEvent
Bubbles
No
Cancelable
No
Target
Document, Element
Default Action
Varies: when the pointer is primary, all default actions of mouseleave

Properties

Property Type Description
target Read only EventTarget The event target (the topmost target in the DOM tree).
type Read only DOMString The type of event.
bubbles Read only Boolean Whether the event normally bubbles or not
cancelable Read only Boolean Whether the event is cancellable or not?
view Read only WindowProxy document.defaultView (window of the document)
detail Read only long (float) 0.
pointerId Read only long A unique identifier for the pointer causing the event.
width Read only double (float) The width (magnitude on the X axis), in CSS pixels, of the contact geometry of the pointer.
height Read only double (float) The height (magnitude on the Y axis), in CSS pixels, of the contact geometry of the pointer.
pressure Read only float The normalized pressure of the pointer input in the range of 0 to 1, where 0 and 1 represent the minimum and maximum pressure the hardware is capable of detecting, respectively.
tiltX Read only long (float) The plane angle (in degrees, in the range of -90 to 90) between the Y-Z plane and the plane containing both the transducer (e.g. pen stylus) axis and the Y axis.
tiltY Read only long (float) The plane angle (in degrees, in the range of -90 to 90) between the X-Z plane and the plane containing both the transducer (e.g. pen stylus) axis and the X axis.
pointerType Read only string Indicates the device type that caused the event. Must be one of the strings mouse, pen or touch, or an empty string.
isPrimary Read only boolean Indicates if the pointer represents the primary pointer of this pointer type.

Examples

// pointerleave event handler
target.addEventListener("pointerleave", function(ev) {
  // Process the event
}, false);

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support Not supported[1] 28.0 (28.0)[2] 11 Not supported Not supported
On disabled form elements Not supported 44.0 (44.0)[3] Not supported Not supported ?
Feature Android Android Webview Chrome for Android Firefox Mobile (Gecko) Firefox OS IE Mobile Opera Mobile Safari Mobile
Basic support Not supported Not supported Not supported Not supported Not supported 11 Not supported Not supported
On disabled form elements Not supported Not supported Not supported Not supported Not supported ? Not supported Not supported

[1] Chrome doesn't implement this feature yet. See bug 196799.

[2] Implemented in bug 822898 behind the preference dom.w3c_pointer_events.enabled, defaulting to false.

[3] Implemented in bug 218093.

ドキュメントのタグと貢献者

 このページの貢献者: rolfedh, Sebastianz, AFBarstow
 最終更新者: rolfedh,