A proprietary WebKit static number on MouseEvent: the minimum force needed for a force click(MDN). Always read MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN — not on an event instance.
Read the notes below before you rely on this property. Prefer feature detection when support is limited.
Syntax
Use event.webkitForceAtForceMouseDown. Start with this line.
JavaScript
MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN
Call
What it does
MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN
Primary signature.
Built into the browser. Read event.webkitForceAtForceMouseDown on a MouseEvent — no import required.
MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN is marked Non-standard on MDN — not part of any specification. WebKit/Safari Force Touch only.
✓ Non-standard
WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN
Static WebKit threshold for force click. Feature-detect; provide a normal-click fallback. Prefer broader pressure APIs when you need cross-browser support.
—WebKit only
Google ChromeAll versions · Desktop & Mobile
Full support
Mozilla FirefoxAll versions · Desktop & Mobile
Full support
Apple SafariAll versions · macOS & iOS
Full support
Microsoft EdgeAll versions · Chromium & Legacy
Full support
Internet ExplorerIE 6+ · Legacy environments
Full support
OperaAll modern versions
Full support
Force thresholdLimited
Bottom line: Study it for Safari Force Touch demos — do not require it for core UX. See the MDN reference.
Frequently Asked Questions
A proprietary WebKit static numeric property on MouseEvent. Its value is the minimum force needed for a force click (Force Touch). Always read it as MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN, not on an event instance.
MDN marks it Non-standard — not part of any web specification. It is not labeled Deprecated or Experimental on that MDN page, but non-standard APIs should not be relied on in production cross-browser code.
Because it is a static property of the MouseEvent interface. Instance events do not carry this constant; reading event.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN is typically undefined.
MouseEvent.webkitForce reports the current force on a mouse event. Compare that value to WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN to detect a force-click threshold on supporting Safari/WebKit builds.
That related static constant is the minimum force for a normal mouse down (lighter threshold). Force-click uses the higher WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN value.
Only behind feature detection for Safari/WebKit Force Touch experiments. Prefer broader Pointer Events pressure APIs where they fit your product.