Element: webkitmouseforcechanged event
目录
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.
Specifications
Not part of any specification. Apple has a description at the Mac Developer Library.