Element: gesturestart event
{{APIRef}}{{Non-standard_header}}
The gesturestart event is fired when multiple fingers contact the touch surface, thus starting a new gesture. During the gesture, {{domxref("Element/gesturechange_event", "gesturechange")}} events will be fired. When the gesture has ended, a {{domxref("Element/gestureend_event", "gestureend")}} event will be fired.
It is a proprietary event specific to WebKit.
Syntax
Use the event name in {{domxref("EventTarget/addEventListener", "addEventListener()")}}:
addEventListener("gesturestart", (event) => { })
Alternatively, assign to the event handler property of the interface:
ongesturestart = (event) => { }
Event type
A {{domxref("GestureEvent")}}. Inherits from {{domxref("Event")}}.
{{InheritanceDiagram("GestureEvent")}}
Specifications
Not part of any specification.
Browser compatibility
{{Compat}}
See also
这篇文档对你有帮助吗?
谢谢你的反馈!