GlobalEventHandlers
ミックスインの onlostpointercapture
プロパティは、lostpointercapture
イベントを処理する EventHandler
です。
構文
target.onlostpointercapture = functionRef;
値
functionRef
は、関数名または関数式です。 関数は PointerEvent
オブジェクトを唯一の引数として受け取ります。
例
function overHandler(event) {
// ターゲットイベントの lostpointercapture ハンドラを決定します
let lostCaptureHandler = event.target.onlostpointercapture;
}
function init() {
let el = document.getElementById('target');
el.onlostpointercapture = overHandler;
}
仕様
仕様 | 状態 | コメント |
---|---|---|
Pointer Events – Level 2 onlostpointercapture の定義 |
勧告 |
ブラウザーの互換性
BCD tables only load in the browser
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.