<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>24095</bug_id>
          
          <creation_ts>2013-12-13 17:48:44 +0000</creation_ts>
          <short_desc>MouseEvent and TouchEvent co-ordinate types should be kept in-sync</short_desc>
          <delta_ts>2014-04-09 21:48:27 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSS</product>
          <component>CSSOM View</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Rick Byers">rbyers</reporter>
          <assigned_to name="Simon Pieters">zcorpan</assigned_to>
          
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>97607</commentid>
    <comment_count>0</comment_count>
    <who name="Rick Byers">rbyers</who>
    <bug_when>2013-12-13 17:48:44 +0000</bug_when>
    <thetext>http://dev.w3.org/csswg/cssom-view/#extensions-to-the-mouseevent-interface changes the type of the co-ordinates on MouseEvent from int to double.  To be consistent, the co-ordinates of TouchEvent (http://www.w3.org/TR/touch-events/#attributes) should probably change at the same time.   Can we just specify corresponding changes to the Touch object here too?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103591</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-04-09 08:12:48 +0000</bug_when>
    <thetext>Currently http://dvcs.w3.org/hg/webevents/raw-file/v1/touchevents.html has:
[[
partial interface Document {
    Touch     createTouch (WindowProxy view, EventTarget target, long identifier, long pageX, long pageY, long screenX, long screenY);
    TouchList createTouchList (Touch... touches);
};

interface Touch {
    readonly    attribute long        identifier;
    readonly    attribute EventTarget target;
    readonly    attribute long        screenX;
    readonly    attribute long        screenY;
    readonly    attribute long        clientX;
    readonly    attribute long        clientY;
    readonly    attribute long        pageX;
    readonly    attribute long        pageY;
};
]]

The proposal is to change it to:

[[
partial interface Document {
    Touch     createTouch (WindowProxy view, EventTarget target, long identifier, double pageX, double pageY, double screenX, double screenY);
    TouchList createTouchList (Touch... touches);
};

interface Touch {
    readonly    attribute long        identifier;
    readonly    attribute EventTarget target;
    readonly    attribute double        screenX;
    readonly    attribute double        screenY;
    readonly    attribute double        clientX;
    readonly    attribute double        clientY;
    readonly    attribute double        pageX;
    readonly    attribute double        pageY;
};
]]

?

What about pageX/pageY/x/y/offsetX/offsetY? What about using a constructor for Touch with a TouchInit dict instead of (or in addition to) a factory function?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103592</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-04-09 08:15:44 +0000</bug_when>
    <thetext>I can&apos;t find Web Events/Touch Events in W3C bugzilla, but please raise this issue on public-webevents@w3.org - it would be good if CSSOM View didn&apos;t have to monkey patch it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103598</commentid>
    <comment_count>3</comment_count>
    <who name="Rick Byers">rbyers</who>
    <bug_when>2014-04-09 16:47:29 +0000</bug_when>
    <thetext>I&apos;m trying to figure out where best to address this.  I was a member of webevents, but that WG has been closed having completed it&apos;s charter.  At the moment there is no vehicle for TouchEvents spec changes (due to lack of interest from vendors).  This may be a job for the TouchEvents community group (public-touchevents).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103636</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-04-09 21:48:27 +0000</bug_when>
    <thetext>Ah, OK. I&apos;m happy to put something in CSSOM View in the meantime if you need this soon.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>