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 966083 of MSGestureEvent

  • Revision slug: Web/API/MSGestureEvent
  • Revision title: MSGestureEvent
  • Revision id: 966083
  • Created:
  • Creator: cvrebert
  • Is current revision? No
  • Comment add more See Alsos

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.
{{domxref("MSGestureEvent.rotation")}} {{readonlyinline}}
Amount of rotation (in radians) since the previous {{domxref("MSGestureEvent")}} of the current gesture. Positive values indicate clockwise rotation; negative values indicate anticlockwise rotation.
 
{{domxref("MSGestureEvent.scale")}} {{readonlyinline}}
The difference in scale (for zoom gestures) from the previous {{domxref("MSGestureEvent")}} of the current gesture.
{{domxref("MSGestureEvent.translationX")}} {{readonlyinline}}
Distance traversed along the X-axis since the previous {{domxref("MSGestureEvent")}} of the current gesture
{{domxref("MSGestureEvent.translationY")}} {{readonlyinline}}
Distance traversed along the Y-axis since the previous {{domxref("MSGestureEvent")}} of the current gesture
{{domxref("MSGestureEvent.velocityAngular")}} {{readonlyinline}}
Angular velocity. Expressed in radians.
{{domxref("MSGestureEvent.velocityExpansion")}} {{readonlyinline}}
The velocity of the expansion of the gesture area.
{{domxref("MSGestureEvent.velocityX")}} {{readonlyinline}}
Velocity along the direction of the X-axis.
{{domxref("MSGestureEvent.velocityY")}} {{readonlyinline}}
Velocity along the direction of the Y-axis.

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

  • {{domxref("GestureEvent")}}
  • {{event("MSGestureStart")}}
  • {{event("MSGestureEnd")}}
  • {{event("MSGestureTap")}}
  • {{event("MSGestureHold")}}
  • {{event("MSGestureChange")}}
  • {{event("MSInertiaStart")}}
  • {{event("gesturestart")}}
  • {{event("gesturechange")}}
  • {{event("gestureend")}}

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>
 <dt>{{domxref("MSGestureEvent.rotation")}} {{readonlyinline}}</dt>
 <dd>Amount of rotation (in radians) since the previous {{domxref("MSGestureEvent")}} of the current gesture. Positive values indicate clockwise rotation; negative values indicate anticlockwise rotation.</dd>
 <dd>&nbsp;</dd>
 <dt>{{domxref("MSGestureEvent.scale")}} {{readonlyinline}}</dt>
 <dd>The difference in scale (for zoom gestures) from the previous {{domxref("MSGestureEvent")}} of the current gesture.</dd>
 <dt>{{domxref("MSGestureEvent.translationX")}} {{readonlyinline}}</dt>
 <dd>Distance traversed along the X-axis since the previous {{domxref("MSGestureEvent")}} of the current gesture</dd>
 <dt>{{domxref("MSGestureEvent.translationY")}} {{readonlyinline}}</dt>
 <dd>Distance traversed along the Y-axis since the previous {{domxref("MSGestureEvent")}} of the current gesture</dd>
 <dt>{{domxref("MSGestureEvent.velocityAngular")}} {{readonlyinline}}</dt>
 <dd>Angular velocity. Expressed in radians.</dd>
 <dt>{{domxref("MSGestureEvent.velocityExpansion")}} {{readonlyinline}}</dt>
 <dd>The velocity of the expansion of the gesture area.</dd>
 <dt>{{domxref("MSGestureEvent.velocityX")}} {{readonlyinline}}</dt>
 <dd>Velocity along the direction of the X-axis.</dd>
 <dt>{{domxref("MSGestureEvent.velocityY")}} {{readonlyinline}}</dt>
 <dd>Velocity along the direction of the Y-axis.</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>{{domxref("GestureEvent")}}</li>
 <li>{{event("MSGestureStart")}}</li>
 <li>{{event("MSGestureEnd")}}</li>
 <li>{{event("MSGestureTap")}}</li>
 <li>{{event("MSGestureHold")}}</li>
 <li>{{event("MSGestureChange")}}</li>
 <li>{{event("MSInertiaStart")}}</li>
 <li>{{event("gesturestart")}}</li>
 <li>{{event("gesturechange")}}</li>
 <li>{{event("gestureend")}}</li>
</ul>
Revert to this revision