A proprietary WebKit static number on MouseEvent: the minimum force needed for a normal click(MDN). Always read MouseEvent.WEBKIT_FORCE_AT_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.webkitForceAtMouseDown. Start with this line.
JavaScript
MouseEvent.WEBKIT_FORCE_AT_MOUSE_DOWN
Call
What it does
MouseEvent.WEBKIT_FORCE_AT_MOUSE_DOWN
Primary signature.
Built into the browser. Read event.webkitForceAtMouseDown on a MouseEvent — no import required.
{ mouseDown: null, forceClick: null }
/* or two numbers on Safari/WebKit */
How It Works
Detect each static separately.
mouseDown — lighter normal press floor.
forceClick — harder force-click floor.
On WebKit, forceClick is typically larger.
Example 5 — Compare webkitForce
Use the threshold only when both APIs exist.
JavaScript
el.addEventListener("mousedown", (e) => {
if (!("WEBKIT_FORCE_AT_MOUSE_DOWN" in MouseEvent)) {
console.log("no Force Touch API");
return;
}
const t = MouseEvent.WEBKIT_FORCE_AT_MOUSE_DOWN;
console.log(e.webkitForce >= t ? "normal force met" : "below");
});
MouseEvent.WEBKIT_FORCE_AT_MOUSE_DOWN is marked Non-standard on MDN — not part of any specification. WebKit/Safari Force Touch only.
✓ Non-standard
WEBKIT_FORCE_AT_MOUSE_DOWN
Static WebKit threshold for a normal click. Feature-detect; provide a 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
Normal 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 normal click. Always read it as MouseEvent.WEBKIT_FORCE_AT_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.
WEBKIT_FORCE_AT_MOUSE_DOWN is the lighter threshold for a normal click. WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN is the higher threshold for a force click. When both exist, the force-click value is typically greater.
Because it is a static property of the MouseEvent interface. Instance events do not carry this constant; reading event.WEBKIT_FORCE_AT_MOUSE_DOWN is typically undefined.
MouseEvent.webkitForce reports the current force on a mouse event. Compare that value to WEBKIT_FORCE_AT_MOUSE_DOWN to see if the press meets a normal-click force threshold on supporting Safari/WebKit builds.
Only behind feature detection for Safari/WebKit Force Touch experiments. Prefer broader Pointer Events pressure APIs where they fit your product.