{{APIRef("DOM Events")}}
{{ Non-standard_header() }}
The MSGestureEvent
is a proprietary interface specific to Internet Explorer and Microsoft Edge which represents events that occur due to touch gestures. Events using this interface include {{event("MSGestureStart")}}, {{event("MSGestureEnd")}}, {{event("MSGestureTap")}}, {{event("MSGestureHold")}}, {{event("MSGestureChange")}}, and {{event("MSInertiaStart")}}.
MSGestureEvent
derives from {{domxref("UIEvent")}}, which in turn derives from {{domxref("Event")}}. Though the {{domxref("MSGestureEvent.initGestureEvent()")}} method is kept for backward compatibility, the creation of an MSGestureEvent
object should be done using the {{domxref("MSGestureEvent.MSGestureEvent", "MSGestureEvent()")}} constructor.
Constructor
- {{domxref("MSGestureEvent.MSGestureEvent", "MSGestureEvent()")}}
- Creates an
MSGestureEvent
object.
Properties
This interface also inherits properties of its parents, {{domxref("UIEvent")}} and {{domxref("Event")}}.
- {{domxref("MSGestureEvent.expansion")}} {{readonlyinline}}
- The diameter of the gesture area. For example, the distance between fingers.
- {{domxref("MSGestureEvent.gestureObject")}} {{readonlyinline}}
- Returns the {{domxref("MSGesture")}} object for this gesture event.
Methods
This interface also inherits methods of its parents, {{domxref("UIEvent")}} and {{domxref("Event")}}.
- {{domxref("MSGestureEvent.initGestureEvent()")}} {{deprecated_inline}}
- Initializes the value of an
MSGestureEvent
. If the event has already being dispatched, this method does nothing. This method is deprecated as of Microsoft Edge.
Specifications
Not part of any specification. Microsoft has a description on MSDN.
Browser compatibility
This interface is supported in Internet Explorer 10+ and Microsoft Edge.
See also
- {{event("MSGestureStart")}}
- {{event("MSGestureEnd")}}
- {{event("MSGestureTap")}}
- {{event("MSGestureHold")}}
- {{event("MSGestureChange")}}
- {{event("MSInertiaStart")}}