W3C home > Mailing lists > Public > public-webevents@w3.org > April to June 2011

Re: WebEvents-ISSUE-10: relatedTarget attribute [Touch Events spec]

From: Matt Brubeck <mbrubeck@mozilla.com>
Date: Tue, 12 Apr 2011 10:02:54 -0700
Message-ID: <4DA485BE.40009@mozilla.com>
To: Web Events Working Group WG <public-webevents@w3.org>
CC: Web Events Working Group Issue Tracker <sysbot+tracker@w3.org>
On 03/29/2011 12:00 PM, Web Events Working Group Issue Tracker wrote:
> "mouseover" and "mouseout" events have a relatedTarget attribute.  The target and relatedTarget attributes are the element that the mouse entered and exited, respectively (or vice-versa for mouseout events):
>
> http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-MouseEvent-relatedTarget
>
> Should "touchenter" and "touchleave" events have the same relatedTarget attribute?

Here is a proposed relatedTarget attribute for the TouchEvent interface, 
adapted directly from the language in DOM Level 2 Events:

relatedTarget of type EventTarget, readonly:
   Used to identify a secondary EventTarget related to a touch event. 
This attribute is used with the touchenter event to indicate the 
EventTarget which the touch point exited, and with the touchleave event 
to indicate the EventTarget which the touch point entered.
Received on Tuesday, 12 April 2011 17:03:30 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 12 April 2011 17:03:30 GMT