mozilla

Revision 28810 of Mouse gesture events

  • Revision slug: Talk:DOM/Mouse_gesture_events
  • Revision title: Mouse gesture events
  • Revision id: 28810
  • Created:
  • Creator: dflanagan
  • Is current revision? Yes
  • Comment page created, 133 words added

Revision Content

This page has no content. Enrich MDN by contributing.


I added a note that MozMagnifyGesture and related events are chrome only. I based this on the following comment in the gecko source at browser/base/content/browser.js:985

// Simple gestures support
//
// As per bug #412486, web content must not be allowed to receive any
// simple gesture events.  Multi-touch gesture APIs are in their
// infancy and we do NOT want to be forced into supporting an API that
// will probably have to change in the future.  (The current Mac OS X
// API is undocumented and was reverse-engineered.)  Until support is
// implemented in the event dispatcher to keep these events as
// chrome-only, we must listen for the simple gesture events during
// the capturing phase and call stopPropagation on every event.

-- dflanagan

Revision Source

<p>This page has no content. Enrich MDN by contributing.</p>
<p><br> I added a note that MozMagnifyGesture and related events are chrome only. I based this on the following comment in the gecko source at browser/base/content/browser.js:985</p>
<pre>// Simple gestures support
//
// As per bug #412486, web content must not be allowed to receive any
// simple gesture events.  Multi-touch gesture APIs are in their
// infancy and we do NOT want to be forced into supporting an API that
// will probably have to change in the future.  (The current Mac OS X
// API is undocumented and was reverse-engineered.)  Until support is
// implemented in the event dispatcher to keep these events as
// chrome-only, we must listen for the simple gesture events during
// the capturing phase and call stopPropagation on every event.
</pre>
<p>-- dflanagan</p>
Revert to this revision