files/en-us/web/api/element/webkitmouseforcewillbegin_event/index.md
{{APIRef("Force Touch Events")}}{{Non-standard_header}}
Safari for macOS fires the non-standard webkitmouseforcewillbegin event at an {{domxref("Element")}} before firing the initial {{domxref("Element/mousedown_event", "mousedown")}} event.
This offers the opportunity to tell the system not to trigger any default Force Touch actions if and when the click turns into a Force Touch events.
To instruct macOS not to engage any default Force Touch actions if the user apply enough pressure to activate a Force Touch event, call {{domxref("Event.preventDefault", "preventDefault()")}} on the webkitmouseforcewillbegin event object.
webkitmouseforcewillbegin is a proprietary, WebKit-specific event. It is part of the Force Touch events feature.
Use the event name in methods like {{domxref("EventTarget.addEventListener", "addEventListener()")}}, or set an event handler property.
addEventListener("webkitmouseforcewillbegin", (event) => { })
onwebkitmouseforcewillbegin = (event) => { }
A {{domxref("MouseEvent")}}. Inherits from {{domxref("UIEvent")}} and {{domxref("Event")}}.
{{InheritanceDiagram("MouseEvent")}}
This interface also inherits properties of its parents, {{domxref("UIEvent")}} and {{domxref("Event")}}.
true if the <kbd>alt</kbd> key was down when the mouse event was fired.true if the <kbd>control</kbd> key was down when the mouse event was fired.true if the <kbd>meta</kbd> key was down when the mouse event was fired.true if the <kbd>shift</kbd> key was down when the mouse event was fired.MOZ_SOURCE_* constants).
This lets you, for example, determine whether a mouse event was generated by an actual mouse or by a touch event (which might affect the degree of accuracy with which you interpret the coordinates associated with the event).Not part of any specification. Apple has a description at the Mac Developer Library.
{{Compat}}