<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - TouchEvent and Touch should have constructors"
   href="https://bugs.webkit.org/show_bug.cgi?id=147740">147740</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>TouchEvent and Touch should have constructors
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>528+ (Nightly build)
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Event Handling
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>rbyers&#64;chromium.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Most UIEvents at this point have a DOM Event constructor.  TouchEvent is a notable exception.  It's not a big use case, but JS-generated events are sometimes useful and (IMHO) ideally all event types would be consistent in this regard.  Is there any interest in adding constructors to WebKit?  Should be trivial.

We (Touch Event Community Group) have recently added constructor definitions to the draft TouchEvents level 2 spec: <a href="http://w3c.github.io/touch-events/touchevents.html#touchevent-interface">http://w3c.github.io/touch-events/touchevents.html#touchevent-interface</a> (bug: <a href="https://github.com/w3c/touch-events/issues/10">https://github.com/w3c/touch-events/issues/10</a>).  Any feedback on the design?  I'm happy to make changes before pages start depending on the API.

<a href="http://crbug.com/508675">http://crbug.com/508675</a> tracks shipping these in blink.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>