Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 966047 of MSGestureEvent

  • Revision slug: Web/API/MSGestureEvent
  • Revision title: MSGestureEvent
  • Revision id: 966047
  • Created:
  • Creator: cvrebert
  • Is current revision? No
  • Comment create stub article

Revision Content

{{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")}}

Revision Source

<p id="Summary">{{APIRef("DOM Events")}}</p>

<p>{{ Non-standard_header() }}</p>

<p>The <code><strong>MSGestureEvent</strong></code> 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")}}.</p>

<p><code>MSGestureEvent</code> 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 <code>MSGestureEvent</code> object should be done using the {{domxref("MSGestureEvent.MSGestureEvent", "MSGestureEvent()")}} constructor.</p>

<h2 id="Constructor">Constructor</h2>

<dl>
 <dt>{{domxref("MSGestureEvent.MSGestureEvent", "MSGestureEvent()")}}</dt>
 <dd>Creates an <code>MSGestureEvent</code> object.</dd>
</dl>

<h2 id="Properties">Properties</h2>

<p><em>This interface also inherits properties of its parents, {{domxref("UIEvent")}} and {{domxref("Event")}}.</em></p>

<dl>
 <dt>{{domxref("MSGestureEvent.expansion")}} {{readonlyinline}}</dt>
 <dd>The diameter of the gesture area. For example, the distance between fingers.</dd>
 <dt>{{domxref("MSGestureEvent.gestureObject")}} {{readonlyinline}}</dt>
 <dd>Returns the {{domxref("MSGesture")}} object for this gesture event.</dd>
</dl>

<h2 id="Methods">Methods</h2>

<p><em>This interface also inherits methods of its parents, {{domxref("UIEvent")}} and {{domxref("Event")}}.</em></p>

<dl>
 <dt>{{domxref("MSGestureEvent.initGestureEvent()")}} {{deprecated_inline}}</dt>
 <dd>Initializes the value of an <code>MSGestureEvent</code>. If the event has already being dispatched, this method does nothing. This method is deprecated as of Microsoft Edge.</dd>
</dl>

<h2 id="Specifications">Specifications</h2>

<p><em>Not part of any specification.</em> Microsoft has <a href="https://msdn.microsoft.com/en-us/library/hh772076(v=vs.85).aspx">a description on MSDN</a>.</p>

<h2 id="Browser_compatibility" name="Browser_compatibility">Browser compatibility</h2>

<p>This interface is supported in Internet Explorer 10+ and Microsoft Edge.</p>

<h2 id="See_also">See also</h2>

<ul>
<li>{{event("MSGestureStart")}}</li>
<li>{{event("MSGestureEnd")}}</li>
<li>{{event("MSGestureTap")}}</li>
<li>{{event("MSGestureHold")}}</li>
<li>{{event("MSGestureChange")}}</li>
<li>{{event("MSInertiaStart")}}</li>
</ul>
Revert to this revision