跳转到主要内容

Element: webkitmouseforceup event

{{APIRef("Force Touch Events")}}{{Non-standard_header}}

The non-standard webkitmouseforceup event is fired by Safari at an {{domxref("Element")}}Element some time after the {{domxref("Element/webkitmouseforcedown_event", "webkitmouseforcedown")}}webkitmouseforcedown event, when pressure on the button has been reduced sufficiently to end the "force click".

webkitmouseforceup is a proprietary, WebKit-specific event. It is part of the Force Touch events feature.

Syntax

Use the event name in {{domxref("EventTarget/addEventListener", "addEventListener()")}}:

addEventListener("webkitmouseforceup", (event) => { })

Alternatively, assign to the event handler property of the interface:

onwebkitmouseforceup = (event) => { }

Event type

A {{domxref("MouseEvent")}}MouseEvent. Inherits from {{domxref("UIEvent")}}UIEvent and {{domxref("Event")}}Event.

{{InheritanceDiagram("MouseEvent")}}

Specifications

Not part of any specification. Apple has a description at the Mac Developer Library.

Browser compatibility

{{Compat}}

See also