MDN self-hosted library · e01.org

Element: webkitmouseforcechanged event

Force Touch Events

no runnable cells web-api-event upstream source

Force Touch Events

The non-standard webkitmouseforcechanged event is fired by Safari each time the amount of pressure changes on the trackpad/touchscreen.

webkitmouseforcechanged is a proprietary, WebKit-specific event introduced by Apple to support their Force Touch events feature.

This event first fires after the mousedown event and stops firing before the mouseup event.

Syntax

Use the event name in addEventListener():

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

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

onwebkitmouseforcechanged = (event) => { }

Event type

A MouseEvent. Inherits from UIEvent and Event.

MouseEvent

Specifications

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

Browser compatibility

See also