Skip to content
Permalink
Browse files

[] (0) Clarify DragEvent's MouseEvent attributes are set to 0 when th…

…ere's no mouse interaction going on.

git-svn-id: http://svn.whatwg.org/webapps@3588 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
Hixie committed Aug 11, 2009
1 parent 57d9426 commit bab2eea7aa96f740f8bf8c070136e79d0a6c0624
Showing with 28 additions and 6 deletions.
  1. +13 −3 index
  2. +15 −3 source
16 index
<p>The drag-and-drop processing model involves several events. They
all use the <code><a href=#dragevent>DragEvent</a></code> interface.</p>

<pre class=idl>interface <dfn id=dragevent>DragEvent</dfn> : MouseEvent {
<pre class=idl>interface <dfn id=dragevent>DragEvent</dfn> : <span>MouseEvent</span> {
readonly attribute <a href=#datatransfer>DataTransfer</a> <a href=#dom-dragevent-datatransfer title=dom-DragEvent-dataTransfer>dataTransfer</a>;

void <a href=#dom-dragevent-initdragevent title=dom-DragEvent-initDragEvent>initDragEvent</a>(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in <span>AbstractView</span> viewArg, in long detailArg, in long screenXArg, in long screenYArg, in long clientXArg, in long clientYArg, in boolean ctrlKeyArg, in boolean altKeyArg, in boolean shiftKeyArg, in boolean metaKeyArg, in unsigned short buttonArg, in EventTarget relatedTargetArg, in <a href=#datatransfer>DataTransfer</a> dataTransferArg);
<h4 id=events-fired-during-a-drag-and-drop-action><span class=secno>7.10.3 </span>Events fired during a drag-and-drop action</h4>

<p>The following events are involved in the drag-and-drop
model. <span class=impl>Whenever the processing model described
model.</p>

<div class=impl>

<p>Whenever the processing model described
below causes one of these events to be fired, the event fired must
use the <code><a href=#dragevent>DragEvent</a></code> interface defined above, must have
the bubbling and cancelable behaviors given in the table below, and
set to the view with which the user interacted to trigger the
drag-and-drop event, the <code title=dom-UIEvent-detail>detail</code> attribute set to zero, the
mouse and key attributes set according to the state of the input
devices as they would be for user interaction events, and the <code title="">relatedTarget</code> attribute set to null.</span></p>
devices as they would be for user interaction events, and the <code title="">relatedTarget</code> attribute set to null.</p>

<p>If there is no relevant pointing device, the object must have its
<code title="">screenX</code>, <code title="">screenY</code>, <code title="">clientX</code>, <code title="">clientY</code>, and <code title="">button</code> attributes set to 0.</p>

<!-- interaction event spec point -->

</div>

<table>

<thead>
18 source
<p>The drag-and-drop processing model involves several events. They
all use the <code>DragEvent</code> interface.</p>

<pre class="idl">interface <dfn>DragEvent</dfn> : MouseEvent {
<pre class="idl">interface <dfn>DragEvent</dfn> : <span>MouseEvent</span> {
readonly attribute <span>DataTransfer</span> <span title="dom-DragEvent-dataTransfer">dataTransfer</span>;

void <span title="dom-DragEvent-initDragEvent">initDragEvent</span>(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in <span>AbstractView</span> viewArg, in long detailArg, in long screenXArg, in long screenYArg, in long clientXArg, in long clientYArg, in boolean ctrlKeyArg, in boolean altKeyArg, in boolean shiftKeyArg, in boolean metaKeyArg, in unsigned short buttonArg, in EventTarget relatedTargetArg, in <span>DataTransfer</span> dataTransferArg);
<h4>Events fired during a drag-and-drop action</h4>

<p>The following events are involved in the drag-and-drop
model. <span class="impl">Whenever the processing model described
model.</p>

<div class="impl">

<p>Whenever the processing model described
below causes one of these events to be fired, the event fired must
use the <code>DragEvent</code> interface defined above, must have
the bubbling and cancelable behaviors given in the table below, and
title="dom-UIEvent-detail">detail</code> attribute set to zero, the
mouse and key attributes set according to the state of the input
devices as they would be for user interaction events, and the <code
title="">relatedTarget</code> attribute set to null.</span></p>
title="">relatedTarget</code> attribute set to null.</p>

<p>If there is no relevant pointing device, the object must have its
<code title="">screenX</code>, <code title="">screenY</code>, <code
title="">clientX</code>, <code title="">clientY</code>, and <code
title="">button</code> attributes set to 0.</p>

<!-- interaction event spec point -->

</div>

<table>

<thead>

0 comments on commit bab2eea

Please sign in to comment.
You can’t perform that action at this time.